Borderou de evaluare (job #3121355)

Utilizator kktsKetevan Tsimakuridze kkts Data 12 aprilie 2023 00:04:50
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
1580ms166412kbIncorect0
2356ms107438kbOK4
3168ms114745kbIncorect0
419ms10518kbIncorect0
514ms2654kbIncorect0
6595ms149286kbIncorect0
749ms10678kbIncorect0
8659ms166596kbIncorect0
9292ms106086kbOK4
10183ms114601kbIncorect0
1114ms9207kbIncorect0
1214ms2654kbIncorect0
13669ms149684kbIncorect0
1454ms10522kbIncorect0
15520ms164630kbIncorect0
16183ms55074kbIncorect0
17153ms113385kbIncorect0
1814ms4489kbIncorect0
1914ms2392kbIncorect0
20530ms148066kbIncorect0
2144ms10338kbIncorect0
22302ms105922kbOK5
2324ms6926kbIncorect0
24198ms69263kbOK5
Punctaj total18

Ceva nu functioneaza?