Borderou de evaluare (job #606337)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Imperfect | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 15 sept. 2021 13:37:31 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:18:1: error: expected unqualified-id before '{' token
18 | {1}
| ^
main.cpp:23:1: error: expected unqualified-id before '{' token
23 | {1}
| ^
main.cpp:26:1: error: expected unqualified-id before '{' token
26 | {1}
| ^
main.cpp: In function 'int main()':
main.cpp:35:3: error: expected ';' before '}' token
35 | {1}
| ^
| ;
main.cpp:35:2: warning: statement has no effect [-Wunused-value]
35 | {1}
| ^
main.cpp:37:3: error: expected ';' before '}' token
37 | {1}
| ^
| ;
main.cpp:37:2: warning: statement has no effect [-Wunused-value]
37 | {1}
| ^
main.cpp:45:3: error: expected ';' before '}' token
45 | {1}
| ^
| ;
main.cpp:45:2: warning: statement has no effect [-Wunused-value]
45 | {1}
| ^
main.cpp: At global scope:
main.cpp:48:1: error: expected unqualified-id before '{' token
48 | {1}
| ^
main.cpp: In function 'int main()':
main.cpp:28:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | freopen("imperfect.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:29:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | freopen("imperfect.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~