QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#563970 | #8589. Explosives | kheiramihoub | Compile Error | / | / | C++14 | 1.8kb | 2024-09-14 18:13:38 | 2024-09-14 18:13:38 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
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