Pagini recente » Borderou de evaluare (job #2804041) | Borderou de evaluare (job #1418125) | Borderou de evaluare (job #456724) | Borderou de evaluare (job #2280949) | Borderou de evaluare (job #2779511)
Borderou de evaluare (job #2779511)
Raport evaluator
Compilare:
main.cpp: In function 'void rmq::construct()':
main.cpp:28:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | for(int i=0; i<ref.size(); i++) {
| ~^~~~~~~~~~~
main.cpp:34:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for(int i=0; i+(1<<step)<=ref.size(); i++) {
| ~~~~~~~~~~~^~~~~~~~~~~~
main.cpp:35:63: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
35 | rmq[step][i]=max(rmq[step-1][i],rmq[step-1][i+(1<<step-1)]);
| ~~~~^~
main.cpp: In function 'void rmq::init()':
main.cpp:51:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for(int i=0; i<ref.size(); i++) {
| ~^~~~~~~~~~~
main.cpp: At global scope:
main.cpp:85:13: warning: 'bool cmp(int, int)' defined but not used [-Wunused-function]
85 | static bool cmp(int x, int y) {
| ^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1ms | 184kb | Incorect | 0 |
2 | 1ms | 184kb | Incorect | 0 |
3 | 3ms | 884kb | Incorect | 0 |
4 | 11ms | 1527kb | Incorect | 0 |
5 | 281ms | 20475kb | Incorect | 0 |
6 | 205ms | 20414kb | Incorect | 0 |
7 | 235ms | 1040kb | Incorect | 0 |
8 | 186ms | 1060kb | Incorect | 0 |
9 | 220ms | 20320kb | Incorect | 0 |
10 | 280ms | 20389kb | Incorect | 0 |
11 | 290ms | 20537kb | Incorect | 0 |
12 | 287ms | 20529kb | Incorect | 0 |
13 | 409ms | 20795kb | Incorect | 0 |
14 | 410ms | 20795kb | Incorect | 0 |
15 | 961ms | 21397kb | Incorect | 0 |
16 | 926ms | 22753kb | Incorect | 0 |
17 | 1003ms | 21368kb | Time limit exceeded | 0 |
18 | 954ms | 21499kb | Incorect | 0 |
19 | 952ms | 21442kb | Incorect | 0 |
20 | 1003ms | 21118kb | Time limit exceeded | 0 |
Punctaj total | 0 |