Borderou de evaluare (job #622201)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Jetoane (clasa a 7-a) | Compilator | cpp-32 |
Rundă | lasm_21_12_2021_cl12 | Status | evaluat |
Dată | 21 dec. 2021 15:42:49 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:44:18: error: expected '}' at end of input
44 | return 0;
| ^
main.cpp:6:1: note: to match this '{'
6 | {
| ^
main.cpp:7:17: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | freopen ("jetoane.in", "rt", stdin);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:8:17: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | freopen ("jetoane.out", "wt", stdout);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:10:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | scanf("%ld %ld", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~~~
main.cpp:13:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf("%ld", &x[i]), count[x[i]] ++;
| ~~~~~^~~~~~~~~~~~~~
main.cpp:16:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf("%ld", &y[i]), count[y[i]] ++;
| ~~~~~^~~~~~~~~~~~~~