QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#470783 | #4928. Game With Numbers | ZhaoZiLong | Compile Error | / | / | C++98 | 821b | 2024-07-10 16:25:24 | 2024-07-10 16:25:26 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘long long int solve(long long int, std::vector<long long int>)’: answer.code:11:26: error: ‘x’ does not name a type 11 | for(auto x:v) | ^ answer.code:14:18: error: expected ‘;’ before ‘return’ 14 | } | ^ | ; 15 | return tot; | ~~~~~~ answer.code:15:17: error: expected primary-expression before ‘return’ 15 | return tot; | ^~~~~~ answer.code:14:18: error: expected ‘;’ before ‘return’ 14 | } | ^ | ; 15 | return tot; | ~~~~~~ answer.code:15:17: error: expected primary-expression before ‘return’ 15 | return tot; | ^~~~~~ answer.code:14:18: error: expected ‘)’ before ‘return’ 14 | } | ^ | ) 15 | return tot; | ~~~~~~ answer.code:11:20: note: to match this ‘(’ 11 | for(auto x:v) | ^ answer.code:22:18: error: ‘x’ does not name a type 22 | for(auto x:v) | ^ answer.code:32:10: error: expected ‘;’ before ‘if’ 32 | } | ^ | ; 33 | if(dep % 2) | ~~ answer.code:33:9: error: expected primary-expression before ‘if’ 33 | if(dep % 2) | ^~ answer.code:32:10: error: expected ‘;’ before ‘if’ 32 | } | ^ | ; 33 | if(dep % 2) | ~~ answer.code:33:9: error: expected primary-expression before ‘if’ 33 | if(dep % 2) | ^~ answer.code:32:10: error: expected ‘)’ before ‘if’ 32 | } | ^ | ) 33 | if(dep % 2) | ~~ answer.code:22:12: note: to match this ‘(’ 22 | for(auto x:v) | ^ answer.code:41:1: warning: control reaches end of non-void function [-Wreturn-type] 41 | } | ^