QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#470322 | #4928. Game With Numbers | MaMengQi | Compile Error | / | / | C++17 | 991b | 2024-07-10 11:56:12 | 2024-07-10 11:56:12 |
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:19:43: error: expected ‘;’ before ‘if’ 19 | }1.414213562373095 | ^ | ; 20 | if(ans1>ans2) | ~~ answer.code:25:25: error: expected ‘}’ before ‘else’ 25 | else | ^~~~ answer.code:13:17: note: to match this ‘{’ 13 | { | ^ answer.code:31:17: error: ‘else’ without a previous ‘if’ 31 | else //??????? | ^~~~ answer.code: At global scope: answer.code:50:9: error: expected unqualified-id before ‘for’ 50 | for(int i=1;i<=n;i++) | ^~~ answer.code:50:21: error: ‘i’ does not name a type 50 | for(int i=1;i<=n;i++) | ^ answer.code:50:26: error: ‘i’ does not name a type 50 | for(int i=1;i<=n;i++) | ^ answer.code:52:9: error: ‘cout’ does not name a type 52 | cout<<ans; | ^~~~ answer.code:53:9: error: expected unqualified-id before ‘return’ 53 | return 0; | ^~~~~~ answer.code:54:1: error: expected declaration before ‘}’ token 54 | } | ^