Borderou de evaluare (job #745273)

Utilizator avatar Gavriliu.Adam Adam Gavriliu Robert Gavriliu.Adam IP ascuns
Problemă Cabina (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 15 nov. 2023 23:00:27 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:34:22: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] 34 | if (altp < ca > altu) | ~~~~~^~~~ main.c:36:22: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] 36 | if (altp > ca < altu) | ~~~~~^~~~ main.c:47:23: warning: unknown conversion type character '\x0a' in format [-Wformat=] 47 | fprintf(fout, "%d%\n%d\n%d", p, l, s); | ^~ main.c:5:37: warning: variable 'x' set but not used [-Wunused-but-set-variable] 5 | int n, nr, a, b, l, p, s, altp, x, altu, ca; | ^ main.c:8:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:19:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 19 | fscanf(fin, "%d%d\n", &a, &b ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:21:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | fscanf(fin, "%d", &a); | ^~~~~~~~~~~~~~~~~~~~~ main.c:27:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 27 | fscanf(fin, "%d%d", &a, &b); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:42:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 42 | fscanf(fin, "%d", &b); | ^~~~~~~~~~~~~~~~~~~~~ main.c:18:12: warning: 'altp' may be used uninitialized [-Wmaybe-uninitialized] 18 | if (altp == 0) { | ^ main.c:5:31: note: 'altp' was declared here 5 | int n, nr, a, b, l, p, s, altp, x, altu, ca; | ^~~~ main.c:26:15: warning: 'altu' may be used uninitialized [-Wmaybe-uninitialized] 26 | a = altu; | ~~^~~~~~ main.c:5:40: note: 'altu' was declared here 5 | int n, nr, a, b, l, p, s, altp, x, altu, ca; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Incorect 0
2 1 ms 245 kb Incorect 0
3 1 ms 245 kb Incorect 0
4 1 ms 241 kb Incorect 0
5 1 ms 245 kb Incorect 0
6 2 ms 245 kb Incorect 0
7 1 ms 245 kb Incorect 0
8 1 ms 245 kb Incorect 0
9 1 ms 245 kb Incorect 0
10 1 ms 245 kb Incorect 0
Punctaj total 0