Borderou de evaluare (job #792640)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Poziții (clasa a 5-a) | Compilator | c-32 |
Rundă | Tema 12 Clasa a 5-a | Status | evaluat |
Dată | 3 nov. 2024 09:58:28 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:15:13: error: 'p' undeclared (first use in this function)
15 | n=n+p*(K%7);
| ^
main.c:15:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:22: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int *' [-Wformat=]
20 | fprintf( fout, "%d", &n);
| ~^ ~~
| | |
| int int *
| %n
main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | fscanf(fin, "%d%d%d", &n, &K, &P);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~