Borderou de evaluare (job #3121357)

Utilizator kktsKetevan Tsimakuridze kkts Data 12 aprilie 2023 00:08:20
Problema Guguștiuc Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 18

Raport evaluator

Compilare: main.cpp: In function 'void add0(long long int)': main.cpp:17:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 17 | for(int j = 0; j < op[1][x].size(); j++) { | ~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'void add(long long int)': main.cpp:24:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 24 | for(int j = 0; j < op[0][x].size(); j++) { | ~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'void upd(long long int)': main.cpp:34:9: warning: statement has no effect [-Wunused-value] 34 | for(id; id <= x.back(); id += id & (-id)) t[id]++; | ^~ main.cpp: In function 'long long int get(long long int)': main.cpp:38:9: warning: statement has no effect [-Wunused-value] 38 | for(id; id >= 1; id -= id & (-id)) c += t[id]; | ^~ main.cpp: At global scope: main.cpp:41:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 41 | main(){ | ^~~~ main.cpp: In function 'int main()': main.cpp:62:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 62 | for(int i = 0; i < x.size(); i++) { | ~~^~~~~~~~~~ main.cpp:81:26: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 81 | for(int j = 0; j < seg[x[i]].size(); j++) upd(seg[x[i]][j]); | ~~^~~~~~~~~~~~~~~~~~ main.cpp:83:26: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 83 | for(int j = 0; j < V[x[i]].size(); j++) ans += get(V[x[i]][j].f) * V[x[i]][j].s; | ~~^~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
1624ms174497kbIncorect0
2361ms107560kbOK4
3173ms122761kbIncorect0
419ms15507kbIncorect0
514ms4751kbIncorect0
6590ms153407kbIncorect0
754ms10866kbIncorect0
8704ms174673kbIncorect0
9292ms106270kbOK4
10193ms122466kbIncorect0
1119ms14450kbIncorect0
1214ms4751kbIncorect0
13674ms153862kbIncorect0
1459ms10973kbIncorect0
15560ms172498kbIncorect0
16182ms55152kbIncorect0
17163ms121536kbIncorect0
1814ms4493kbIncorect0
1914ms4489kbIncorect0
20530ms152174kbIncorect0
2144ms10977kbIncorect0
22347ms105947kbOK5
2324ms7028kbIncorect0
24208ms69275kbOK5
Punctaj total18

Ceva nu functioneaza?