Borderou de evaluare (job #800201)

Utilizator avatar DeakDarius HackerPrime DeakDarius IP ascuns
Problemă 3numere Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 17 dec. 2024 21:53:37 Scor 45

Raport evaluator

Compilare: main.cpp: In function 'bool isPrime(long long int)': main.cpp:21:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 21 | if( n == 2 ) | ^~ main.cpp:23:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 23 | if(n%2==0 && n!=2) | ^~ main.cpp:23:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] main.cpp:25:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 25 | for(int i = 3 ; i * i <= n ; i +=2 ) | ^~~ main.cpp:26:14: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 26 | if(n%i==0) | ^~ main.cpp:28:16: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 28 | return true; | ^~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 59 ms 266 kb Time limit exceeded 0
3 1 ms 245 kb a) OK; b) linie incorecta; c) (null) 5
4 59 ms 245 kb Time limit exceeded 0
5 59 ms 266 kb Time limit exceeded 0
6 1 ms 266 kb OK 10
7 59 ms 245 kb Time limit exceeded 0
8 1 ms 245 kb OK 10
9 2 ms 245 kb a) OK; b) linie incorecta; c) (null) 5
10 1 ms 245 kb a) OK; b) linie incorecta; c) (null) 5
Punctaj total 45