Borderou de evaluare (job #693612)

Utilizator avatar Nasa1004 Ema Nicole Gheorghe Nasa1004 IP ascuns
Problemă Deal (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 6 feb. 2023 10:31:40 Scor 90

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:22:19: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 22 | for(int i=1; i<=n; i++) | ~^~~ main.cpp:25:16: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 25 | if(v[i]>maxh) maxh=v[i]; | ~~~~^~~~~ main.cpp:29:21: warning: comparison of integer expressions of different signedness: 'const long long int' and 'long long unsigned int' [-Wsign-compare] 29 | if(var.first==maxh) maxhap=var.second; | ~~~~~~~~~^~~~~~ main.cpp:30:22: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 30 | if(var.second>=(n+1)/2) maxap=var.second, x=var.first; | ~~~~~~~~~~^~~~~~~~~ main.cpp:39:29: warning: comparison of integer expressions of different signedness: 'const long long int' and 'long long unsigned int' [-Wsign-compare] 39 | if(var.first<x) nrmici+=var.second; | ~~~~~~~~~^~ main.cpp:40:34: warning: comparison of integer expressions of different signedness: 'const long long int' and 'long long unsigned int' [-Wsign-compare] 40 | else if(var.first>x) sum+=(var.first)*(var.second), nrmari+=var.second; | ~~~~~~~~~^~ main.cpp:52:34: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 52 | if(n%2==1) for(int i=n; i>(n+1)/2; i--) sum+=v[i]; | ~^~~~~~~~ main.cpp:53:39: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 53 | else if(n%2==0) for(int i=n; i>n/2; i--) sum+=v[i]; | ~^~~~ main.cpp:20:61: warning: variable 'maxhap' set but not used [-Wunused-but-set-variable] 20 | unsigned long long int n, sum=0, maxh=0, maxap=0, x=-1, maxhap=0, nrmici=0, nrmari=0; | ^~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 114 kb OK 10
2 1 ms 114 kb OK 10
3 73 ms 1294 kb OK 10
4 1 ms 114 kb OK 10
5 91 ms 1425 kb Incorect 0
6 1 ms 114 kb OK 10
7 2 ms 114 kb OK 10
8 1 ms 114 kb OK 10
9 1 ms 114 kb OK 10
10 1 ms 110 kb OK 10
Punctaj total 90