Borderou de evaluare (job #803797)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Punga (clasa a 7-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 9 ian. 2025 22:00:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:12:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
12 | while()
| ^~~~~
main.c:12:15: error: expected expression before ')' token
12 | while()
| ^
main.c:14:24: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int *' [-Wformat=]
14 | fprintf(out, "%d", &a[0]);
| ~^ ~~~~~
| | |
| int int *
| %n
main.c:7:16: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | int T; fscanf(in, "%d", &T);
| ^~~~~~~~~~~~~~~~~~~~
main.c:10:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf(in, "%d", &a[T]);
| ^~~~~~~~~~~~~~~~~~~~~~~