Borderou de evaluare (job #820729)

Utilizator avatar DeakDarius HackerPrime DeakDarius IP ascuns
Problemă Divizor (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 16 apr. 2025 15:54:12 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void MaxDiv(long long int&, long long int&)': main.cpp:30:19: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 30 | if(mx<i) | ^~ main.cpp:32:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 32 | if(mx<n/i && i * i < n ) | ^~ main.cpp: In function 'int main()': main.cpp:60:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 60 | for(int i = 0 ; i < v.size() ; i ++ ){ | ~~^~~~~~~~~~ main.cpp:66:21: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 66 | if(mxdiv<div) | ^~ main.cpp:68:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 68 | div = -1 ; | ^~~ main.cpp:41:24: warning: unused variable 'nr' [-Wunused-variable] 41 | long long n , p , nr , mx = -1 , ct = 1 , div = -1 ,mxdiv = -1 ; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 507 kb OK 10
3 1 ms 507 kb OK 10
4 1 ms 266 kb OK 10
5 1 ms 245 kb OK 10
6 1 ms 245 kb OK 10
7 1 ms 245 kb OK 10
8 4 ms 389 kb OK 10
9 1 ms 266 kb OK 10
10 1 ms 245 kb OK 10
Punctaj total 100