Borderou de evaluare (job #793013)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Furnica (clasa a 6-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 3 nov. 2024 22:23:36 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:63:13: warning: the comparison will always evaluate as 'true' for the address of 'vizite' will never be NULL [-Waddress]
63 | if (vizite[i]j[j]>maxvizit){
| ^~~~~~
main.c:10:9: note: 'vizite' declared here
10 | int vizite[MAXn][MAXn];
| ^~~~~~
main.c:63:22: error: expected ')' before 'j'
63 | if (vizite[i]j[j]>maxvizit){
| ~ ^
| )
main.c:20:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | fscanf (fin, "%d %d", &n, &k);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:23:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
23 | fscanf (fin, "%d", &moves[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~