QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#798488 | #9800. Crisis Event: Meteorite | NailongGroup | Compile Error | / | / | C++20 | 5.7kb | 2024-12-04 14:08:11 | 2024-12-04 14:08:20 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int work(int, std::vector<node>&, vi&, vi&)’: answer.code:159:14: error: a function-definition is not allowed here before ‘{’ token 159 | void solve() { | ^ answer.code:195:12: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 195 | signed main() { | ^~ answer.code:195:12: note: remove parentheses to default-initialize a variable 195 | signed main() { | ^~ | -- answer.code:195:12: note: or replace parentheses with braces to value-initialize a variable answer.code:195:15: error: a function-definition is not allowed here before ‘{’ token 195 | signed main() { | ^ answer.code:201:2: error: expected ‘}’ at end of input 201 | } | ^ answer.code:131:48: note: to match this ‘{’ 131 | int work(int n, vector<node> &A, vi &p, vi &a) { | ^ answer.code:201:2: warning: control reaches end of non-void function [-Wreturn-type] 201 | } | ^