QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#563967#8589. ExplosiveskheiramihoubCompile Error//C++141.8kb2024-09-14 18:12:382024-09-14 18:12:39

Details

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