Borderou de evaluare (job #783224)

Utilizator avatar Sebi_Ionescu Ionescu Sebastian Andrei Sebi_Ionescu IP ascuns
Problemă Chibrituri (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 1 aug. 2024 13:19:52 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:11:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf( fin, "%d%d", &nv, &no ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from main.cpp:1: In function 'int fprintf(FILE*, const char*, ...)', inlined from 'int main()' at main.cpp:35:10: /usr/include/bits/stdio2.h:79:24: warning: 'omin' may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:8:30: note: 'omin' was declared here 8 | int nv, no, var, ora, min, omin, mmin, omax, mmax, c1, c2, c3, c4; | ^~~~ In function 'int fprintf(FILE*, const char*, ...)', inlined from 'int main()' at main.cpp:35:10: /usr/include/bits/stdio2.h:79:24: warning: 'mmin' may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:8:36: note: 'mmin' was declared here 8 | int nv, no, var, ora, min, omin, mmin, omax, mmax, c1, c2, c3, c4; | ^~~~ In function 'int fprintf(FILE*, const char*, ...)', inlined from 'int main()' at main.cpp:35:10: /usr/include/bits/stdio2.h:79:24: warning: 'omax' may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:8:42: note: 'omax' was declared here 8 | int nv, no, var, ora, min, omin, mmin, omax, mmax, c1, c2, c3, c4; | ^~~~ In function 'int fprintf(FILE*, const char*, ...)', inlined from 'int main()' at main.cpp:35:10: /usr/include/bits/stdio2.h:79:24: warning: 'mmax' may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:8:48: note: 'mmax' was declared here 8 | int nv, no, var, ora, min, omin, mmin, omax, mmax, c1, c2, c3, c4; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 245 kb OK 10
4 1 ms 245 kb OK 10
5 1 ms 245 kb OK 10
6 2 ms 245 kb OK 10
7 2 ms 245 kb OK 10
8 2 ms 245 kb OK 10
9 1 ms 245 kb OK 10
10 1 ms 245 kb OK 10
Punctaj total 100