QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#474343#3098. Ancient Machineegypt_ioi2024b_04Compile Error//C++202.6kb2024-07-12 17:31:422024-07-12 17:31:43

詳細信息

Anna.code: In function ‘void Anna(int, std::vector<char>)’:
Anna.code:18:17: error: ‘ll’ was not declared in this scope
   18 |     std::vector<ll> v(41, 0);
      |                 ^~
Anna.code:18:19: error: template argument 1 is invalid
   18 |     std::vector<ll> v(41, 0);
      |                   ^
Anna.code:18:19: error: template argument 2 is invalid
Anna.code:18:28: error: expression list treated as compound expression in initializer [-fpermissive]
   18 |     std::vector<ll> v(41, 0);
      |                            ^
Anna.code:19:7: error: expected ‘;’ before ‘sum’
   19 |     ll sum[2] = {1, 2};
      |       ^~~~
      |       ;
Anna.code:20:6: error: invalid types ‘int[int]’ for array subscript
   20 |     v[0] = 1;
      |      ^
Anna.code:21:6: error: invalid types ‘int[int]’ for array subscript
   21 |     v[1] = 2;
      |      ^
Anna.code:25:10: error: invalid types ‘int[int]’ for array subscript
   25 |         v[i] = v[i-1] + v[i-2];
      |          ^
Anna.code:25:17: error: invalid types ‘int[int]’ for array subscript
   25 |         v[i] = v[i-1] + v[i-2];
      |                 ^
Anna.code:25:26: error: invalid types ‘int[int]’ for array subscript
   25 |         v[i] = v[i-1] + v[i-2];
      |                          ^
Anna.code:26:9: error: ‘sum’ was not declared in this scope
   26 |         sum[(i & 1)] += v[i];
      |         ^~~
Anna.code:26:26: error: invalid types ‘int[int]’ for array subscript
   26 |         sum[(i & 1)] += v[i];
      |                          ^
Anna.code:28:20: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘int’
   28 |     std::reverse(v.begin(), v.end());
      |                    ^~~~~
Anna.code:28:31: error: request for member ‘end’ in ‘v’, which is of non-class type ‘int’
   28 |     std::reverse(v.begin(), v.end());
      |                               ^~~
Anna.code:31:11: error: expected ‘;’ before ‘sm’
   31 |         ll sm = 0;
      |           ^~~
      |           ;
Anna.code:33:23: error: ‘sm’ was not declared in this scope; did you mean ‘tm’?
   33 |             if (ar[j])sm += v[j-l];
      |                       ^~
      |                       tm
Anna.code:33:30: error: invalid types ‘int[int]’ for array subscript
   33 |             if (ar[j])sm += v[j-l];
      |                              ^
Anna.code:36:18: error: ‘sm’ was not declared in this scope; did you mean ‘tm’?
   36 |             if ((sm & (1ll << bit))) {
      |                  ^~
      |                  tm