Pagini recente »
Borderou de evaluare (job #307766)
|
Borderou de evaluare (job #632308)
|
Borderou de evaluare (job #137760)
|
Borderou de evaluare (job #241554)
|
Borderou de evaluare (job #693612)
Borderou de evaluare (job #693612)
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
|