Borderou de evaluare (job #780305)

Utilizator avatar Dumy Dumitrescu Andrei Dumy IP ascuns
Problemă Piramide (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 18 iun. 2024 19:47:25 Scor 74

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:14:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 14 | for(int i=0; i<k; i++) | ~^~ main.cpp:19:30: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 19 | while(tot+baza*(baza+1)/2<n) | ~~~~~~~~~~~~~~~~~~~^~ main.cpp:25:19: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 25 | while(v[i]<tot) | ~~~~^~~~ main.cpp:36:13: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 36 | if(x<tot && x>tc) | ~^~~~ main.cpp:36:22: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 36 | if(x<tot && x>tc) | ~^~~ main.cpp:39:17: warning: 'pmag' may be used uninitialized [-Wmaybe-uninitialized] 39 | cout<<pmag<<"\n"<<c<<"\n"<<n-tot<<"\n"<<pmax; | ^~~~ main.cpp:18:32: note: 'pmag' was declared here 18 | int nmaxc=0, nactc=0, c=0, pmag, baza=2, tot=0, pmax, i=0, tc=0; | ^~~~ main.cpp:39:45: warning: 'pmax' may be used uninitialized [-Wmaybe-uninitialized] 39 | cout<<pmag<<"\n"<<c<<"\n"<<n-tot<<"\n"<<pmax; | ^~~~ main.cpp:18:53: note: 'pmax' was declared here 18 | int nmaxc=0, nactc=0, c=0, pmag, baza=2, tot=0, pmax, i=0, tc=0; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 2 ms 245 kb OK 10
2 2 ms 245 kb OK 10
3 1 ms 245 kb OK 10
4 1 ms 245 kb OK 10
5 2 ms 245 kb a) OK; b) OK; c) OK d) linie incorecta 6
6 1 ms 249 kb a) OK; b) OK; c) OK d) linie incorecta 6
7 1 ms 245 kb a) linie incorecta; b) OK; c) OK d) linie incorecta 4
8 1 ms 241 kb a) linie incorecta; b) OK; c) OK d) linie incorecta 4
9 39 ms 507 kb OK 10
10 4 ms 245 kb a) linie incorecta; b) OK; c) OK d) linie incorecta 4
Punctaj total 74