Borderou de evaluare (job #743696)

Utilizator avatar Vicentiu Savu Vicentiu Dorian Vicentiu IP ascuns
Problemă Cabina (clasa a 5-a) Compilator c-32
Rundă Concurs 01 | IQ Academy | clasa a 5-a, dimineață Status evaluat
Dată 10 nov. 2023 10:03:45 Scor 30

Raport evaluator

Compilare: main.c: In function 'main': main.c:20:10: warning: statement with no effect [-Wunused-value] 20 | g==0; | ~^~~ main.c:37:14: warning: statement with no effect [-Wunused-value] 37 | g==0; | ~^~~ main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin, "%d", &k); | ^~~~~~~~~~~~~~~~~~~~~ main.c:13:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf(fin, "%d", &o); | ^~~~~~~~~~~~~~~~~~~~~ main.c:23:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 23 | fscanf(fin, "%d", &k); | ^~~~~~~~~~~~~~~~~~~~~ main.c:24:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 24 | fscanf(fin, "%d", &o); | ^~~~~~~~~~~~~~~~~~~~~ main.c:48:5: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 48 | fprintf(fin, "%d", sp); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:42:5: note: call to 'fclose' here 42 | fclose(fin); | ^~~~~~~~~~~ main.c:47:5: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 47 | fprintf(fin, "\n"); | ^~~~~~~~~~~~~~~~~~ main.c:42:5: note: call to 'fclose' here 42 | fclose(fin); | ^~~~~~~~~~~ main.c:46:5: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 46 | fprintf(fin, "%d", j); | ^~~~~~~~~~~~~~~~~~~~~ main.c:42:5: note: call to 'fclose' here 42 | fclose(fin); | ^~~~~~~~~~~ main.c:45:5: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 45 | fprintf(fin, "\n"); | ^~~~~~~~~~~~~~~~~~ main.c:42:5: note: call to 'fclose' here 42 | fclose(fin); | ^~~~~~~~~~~ main.c:44:5: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 44 | fprintf(fin, "%d", ot); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:42:5: note: call to 'fclose' here
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 OK 10
4 1 ms 245 kb Incorect 0
5 1 ms 245 kb OK 10
6 1 ms 245 kb Incorect 0
7 1 ms 245 kb Incorect 0
8 1 ms 245 kb OK 10
9 1 ms 245 kb Incorect 0
10 1 ms 245 kb Incorect 0
Punctaj total 30