QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#563970#8589. ExplosiveskheiramihoubCompile Error//C++141.8kb2024-09-14 18:13:382024-09-14 18:13:38

詳細信息

answer.code: In function ‘int main()’:
answer.code:14:17: error: ‘supply’ was not declared in this scope
   14 |                 supply(i) = (i>n ? -1 : 1);
      |                 ^~~~~~
answer.code:19:17: error: ‘supply’ was not declared in this scope
   19 |                 supply(i) += supply(i-1);
      |                 ^~~~~~
In file included from /usr/include/c++/13/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:106,
                 from answer.code:1:
answer.code:21:16: error: ‘supply’ was not declared in this scope
   21 |         assert(supply(m+n)==0);
      |                ^~~~~~
answer.code:40:29: error: ‘loc’ was not declared in this scope; did you mean ‘log’?
   40 |                 cost += abs(loc(i+1) - loc(i));
      |                             ^~~
      |                             log
answer.code:59:29: error: ‘loc’ was not declared in this scope; did you mean ‘log’?
   59 |                 cost += abs(loc(i+1) - loc(i));
      |                             ^~~
      |                             log
answer.code:67:17: error: ‘loc’ was not declared in this scope; did you mean ‘log’?
   67 |         cout << loc(i) << " ";
      |                 ^~~
      |                 log