Borderou de evaluare (job #785655)

Utilizator avatar DeakDarius HackerPrime DeakDarius IP ascuns
Problemă Numere1 (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 5 sept. 2024 19:05:04 Scor 10

Raport evaluator

Compilare: main.cpp: In function 'bool AproapePrim(int)': main.cpp:26:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 26 | if(isPrime(i)) | ^~ main.cpp:28:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 28 | if(isPrime(a/i)) | ^~ main.cpp:28:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] main.cpp:31:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 31 | rez=d1*d2; | ^~~ main.cpp:31:24: warning: 'd1' may be used uninitialized [-Wmaybe-uninitialized] 31 | rez=d1*d2; | ~~~^~~~~~ main.cpp:19:9: note: 'd1' was declared here 19 | int d1,d2,rez; | ^~ main.cpp:31:24: warning: 'd2' may be used uninitialized [-Wmaybe-uninitialized] 31 | rez=d1*d2; | ~~~^~~~~~ main.cpp:19:12: note: 'd2' was declared here 19 | int d1,d2,rez; | ^~ main.cpp:38:11: warning: 'rez' may be used uninitialized [-Wmaybe-uninitialized] 38 | if(rez==a) | ^~ main.cpp:19:15: note: 'rez' was declared here 19 | int d1,d2,rez; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Incorect 0
2 1 ms 245 kb Incorect 0
3 1 ms 245 kb Incorect 0
4 1 ms 245 kb Incorect 0
5 1 ms 245 kb Incorect 0
6 1 ms 249 kb Incorect 0
7 9 ms 245 kb Incorect 0
8 39 ms 249 kb Incorect 0
9 39 ms 270 kb Incorect 0
10 1 ms 245 kb OK 10
Punctaj total 10