Borderou de evaluare (job #820653)

Utilizator avatar DeakDarius HackerPrime DeakDarius IP ascuns
Problemă 3numere Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 14 apr. 2025 15:43:52 Scor 90

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 1 ms 245 kb OK 10
3 19 ms 245 kb OK 10
4 1 ms 507 kb OK 10
5 2 ms 245 kb OK 10
6 1 ms 245 kb OK 10
7 2 ms 245 kb OK 10
8 2 ms 245 kb OK 10
9 59 ms 245 kb Time limit exceeded 0
10 2 ms 245 kb OK 10
Punctaj total 90