Borderou de evaluare (job #2508155)
Utilizator | Data | 11 decembrie 2019 17:40:38 | |
---|---|---|---|
Problema | Suma4 | Status | done |
Runda | Arhiva de probleme | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:70:9: error: unknown type name 'poz'
poz e=drum[i][j][k];
^~~
main.c:70:9: note: use 'struct' keyword to refer to the type
main.c:70:15: error: incompatible types when initializing type 'int' using type 'struct poz'
poz e=drum[i][j][k];
^~~~
main.c:71:12: error: request for member 'camera' in something not a structure or union
i=e.camera;
^
main.c:72:12: error: request for member 'linie' in something not a structure or union
j=e.linie;
^
main.c:73:12: error: request for member 'coloana' in something not a structure or union
k=e.coloana;
^
main.c:70:13: warning: variable 'e' set but not used [-Wunused-but-set-variable]
poz e=drum[i][j][k];
^
main.c: In function 'min':
main.c:37:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
main.c: In function 'main':
main.c:50:5: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
freopen ("suma4.in", "r", stdin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:51:5: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
freopen ("suma4.out", "w", stdout);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:53:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &n);
^~~~~~~~~~~~~~~~
main.c:60:17: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &cost[i][j][k]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !