Borderou de evaluare (job #796347)

Utilizator avatar avram.popa Avram-Popa avram.popa IP ascuns
Problemă Circular (clasa a 9-a ) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 20 nov. 2024 22:23:15 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:61:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 61 | fscanf(fin,"%d",&n); | ~~~~~~^~~~~~~~~~~~~ main.cpp:83:10: warning: pointer 'fin' may be used after 'int fclose(FILE*)' [-Wuse-after-free] 83 | fprintf( fin, "%d ", cnt ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:62:9: note: call to 'int fclose(FILE*)' here 62 | fclose(fin); | ~~~~~~^~~~~ In file included from /usr/include/stdio.h:970, from main.cpp:1: In function 'int fprintf(FILE*, const char*, ...)', inlined from 'int main()' at main.cpp:83:10: /usr/include/bits/stdio2.h:111:24: warning: pointer used after 'int fclose(FILE*)' [-Wuse-after-free] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:62:9: note: call to 'int fclose(FILE*)' here 62 | fclose(fin); | ~~~~~~^~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 507 kb OK 10
2 39 ms 270 kb OK 10
3 9 ms 249 kb OK 10
4 1 ms 249 kb OK 10
5 1 ms 245 kb OK 10
6 1 ms 507 kb OK 10
7 39 ms 270 kb OK 10
8 1 ms 245 kb OK 10
9 9 ms 249 kb OK 10
10 39 ms 249 kb OK 10
Punctaj total 100