QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#563967 | #8589. Explosives | kheiramihoub | Compile Error | / | / | C++14 | 1.8kb | 2024-09-14 18:12:38 | 2024-09-14 18:12:39 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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