QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#786220 | #9156. 百万富翁 | jimmyF | Compile Error | / | / | C++14 | 731b | 2024-11-26 20:47:02 | 2024-11-26 20:47:02 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:4:8: error: size of array ‘id’ is not an integral constant-expression 4 | int id[V],tmp[V]; | ^ answer.code:4:15: error: size of array ‘tmp’ is not an integral constant-expression 4 | int id[V],tmp[V]; | ^ answer.code:5:10: error: size of array ‘vis’ is not an integral constant-expression 5 | bool vis[V]; | ^ answer.code:6:1: error: ‘vector’ does not name a type 6 | vector<int>qa,qb; | ^~~~~~ answer.code: In function ‘int richest(int, int, int)’: answer.code:13:17: error: ‘qa’ was not declared in this scope 13 | qa.clear(),qb.clear(); | ^~ answer.code:13:28: error: ‘qb’ was not declared in this scope 13 | qa.clear(),qb.clear(); | ^~ answer.code:18:17: error: ‘vector’ was not declared in this scope; did you mean ‘std::vector’? 18 | vector<int>ans=ask(qa,qb); | ^~~~~~ | std::vector In file included from /usr/include/c++/13/vector:66, from richest.h:4, from answer.code:1: /usr/include/c++/13/bits/stl_vector.h:425:11: note: ‘std::vector’ declared here 425 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ answer.code:18:24: error: expected primary-expression before ‘int’ 18 | vector<int>ans=ask(qa,qb); | ^~~ answer.code:19:17: error: ‘R’ was not declared in this scope 19 | R=0; | ^ answer.code:22:49: error: ‘ans’ was not declared in this scope; did you mean ‘abs’? 22 | vis[id[j]+id[k]-ans[R++]]=1; | ^~~ | abs answer.code:30:1: warning: no return statement in function returning non-void [-Wreturn-type] 30 | } | ^