Borderou de evaluare (job #746332)

Utilizator avatar davidgeo123 David Georgescu davidgeo123 IP ascuns
Problemă Cabina (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 20 nov. 2023 17:53:22 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:11:13: warning: variable 'y1' set but not used [-Wunused-but-set-variable] 11 | int x1, y1, x2, y2, x3, y3; | ^~ main.cpp:7:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 7 | freopen("cabina.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:8:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | freopen("cabina.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:26:13: warning: 'x1' may be used uninitialized [-Wmaybe-uninitialized] 26 | if(x2>x1 && x2>x3) | ^~ main.cpp:11:9: note: 'x1' was declared here 11 | int x1, y1, x2, y2, x3, y3; | ^~ main.cpp:26:13: warning: 'x2' may be used uninitialized [-Wmaybe-uninitialized] 26 | if(x2>x1 && x2>x3) | ^~ main.cpp:11:17: note: 'x2' was declared here 11 | int x1, y1, x2, y2, x3, y3; | ^~
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 2 ms 245 kb OK 10
6 1 ms 245 kb OK 10
7 1 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