Borderou de evaluare (job #675761)

Utilizator avatar S_Oleg Oleg Sirbu S_Oleg IP ascuns
Problemă Bac (clasele 6/7) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 14 nov. 2022 15:48:35 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:20:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | freopen("bac.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ main.cpp:21:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | freopen("bac.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp:24:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 24 | scanf("%d%d%d",&k,&l,&a); | ~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:27:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 27 | scanf("%1d%1d%c%1d%1d",&h1,&h2,&ch,&m1,&m2); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:33:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 33 | scanf("%d",&b); | ~~~~~^~~~~~~~~ main.cpp:36:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 36 | scanf("%1d%1d%c%1d%1d",&h1,&h2,&ch,&m1,&m2); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 114 kb OK 10
2 1 ms 114 kb OK 10
3 1 ms 114 kb OK 10
4 1 ms 114 kb OK 10
5 1 ms 114 kb OK 10
6 7 ms 118 kb OK 10
7 94 ms 118 kb OK 10
8 135 ms 118 kb OK 10
9 20 ms 114 kb OK 10
10 170 ms 118 kb OK 10
Punctaj total 100