Borderou de evaluare (job #800207)

Utilizator avatar DeakDarius HackerPrime DeakDarius IP ascuns
Problemă 3numere Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 17 dec. 2024 22:36:32 Scor 35

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; | ^~~~~~ main.cpp: In function 'int main()': main.cpp:48:25: warning: unused variable 'p' [-Wunused-variable] 48 | long long x , y , z , p = 1 , div; | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb a) OK; b) linie incorecta; c) (null) 5
2 4 ms 131 kb OK 10
3 59 ms 266 kb Time limit exceeded 0
4 59 ms 245 kb Time limit exceeded 0
5 1 ms 245 kb a) OK; b) linie incorecta; c) (null) 5
6 2 ms 131 kb a) OK; b) linie incorecta; c) (null) 5
7 1 ms 245 kb a) OK; b) linie incorecta; c) (null) 5
8 2 ms 131 kb a) OK; b) linie incorecta; c) (null) 5
9 59 ms 245 kb Time limit exceeded 0
10 55 ms 126 kb Time limit exceeded 0
Punctaj total 35