Tea Break 002
コンテスト日時
2019/11/13 (We) 21:00 - 22:30
提出 #3586
提出日時2021/05/25 13:06:33
問題D: Multiple Multiple
ユーザsoraie
言語C++17 ACL (g++ 10.2.0 with AC Library v1.1)
得点0
結果
CE

コンパイルエラー

/judge/Main.cpp: In function 'int main()':
/judge/Main.cpp:158:11: error: 'lll' was not declared in this scope; did you mean 'pll'?
  158 |     int N;lll M;
      |           ^~~
      |           pll
/judge/Main.cpp:159:17: error: 'M' was not declared in this scope
  159 |     cin >> N >> M;
      |                 ^
/judge/Main.cpp:160:15: error: template argument 2 is invalid
  160 |     vector<lll> vec(N);
      |               ^
/judge/Main.cpp:161:23: error: invalid types 'int[ll {aka long long int}]' for array subscript
  161 |     rep(i,N)cin >> vec[i];
      |                       ^
/judge/Main.cpp:162:8: error: expected ';' before 'ans'
  162 |     lll ans = lll(1) << 100;
      |        ^~~~
      |        ;
/judge/Main.cpp:163:8: error: expected ';' before 'res'
  163 |     lll res = -1;
      |        ^~~~
      |        ;
/judge/Main.cpp:165:12: error: expected ';' before 'cnt'
  165 |         lll cnt = 1;
      |            ^~~~
      |            ;
/judge/Main.cpp:166:31: error: 'cnt' was not declared in this scope; did you mean 'int'?
  166 |         rep(j,N)if(i >> j & 1)cnt *= vec[j];
      |                               ^~~
      |                               int
/judge/Main.cpp:166:41: error: invalid types 'int[ll {aka long long int}]' for array subscript
  166 |         rep(j,N)if(i >> j & 1)cnt *= vec[j];
      |                                         ^
/judge/Main.cpp:167:18: error: 'ans' was not declared in this scope; did you mean 'abs'?
  167 |         if(chmin(ans,abs(cnt - M)))res = cnt;
      |                  ^~~
      |                  abs
/judge/Main.cpp:167:26: error: 'cnt' was not declared in this scope; did you mean 'int'?
  167 |         if(chmin(ans,abs(cnt - M)))res = cnt;
      |                          ^~~
      |                          int
/judge/Main.cpp:167:36: error: 'res' was not declared in this scope; did you mean 'Yes'?
  167 |         if(chmin(ans,abs(cnt - M)))res = cnt;
      |                                    ^~~
      |                                    Yes
/judge/Main.cpp:169:13: error: 'res' was not declared in this scope; did you mean 'Yes'?
  169 |     cout << res << "\n";
      |             ^~~
      |             Yes