Problem fraud
User Schzeey2
Submission Time 2023-09-09 22:00:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fraud.cpp:24:12: error: ‘cin’ does not name a type; did you mean ‘sin’?
24 | int n; cin >> n;
| ^~~
| sin
fraud.cpp:27:5: error: expected unqualified-id before ‘for’
27 | for (int i = 0; i < n; ++i){
| ^~~
fraud.cpp:27:21: error: ‘i’ does not name a type
27 | for (int i = 0; i < n; ++i){
| ^
fraud.cpp:27:28: error: expected unqualified-id before ‘++’ token
27 | for (int i = 0; i < n; ++i){
| ^~
fraud.cpp:42:5: error: expected unqualified-id before ‘if’
42 | if (flag == 1){
| ^~
fraud.cpp:45:5: error: expected unqualified-id before ‘else’
45 | else{
| ^~~~
fraud.cpp:49:1: error: expected declaration before ‘}’ token
49 | }*/
| ^
fraud.cpp:49:3: error: expected unqualified-id before ‘/’ token
49 | }*/
| ^