Borderou de evaluare (job #3121353)

Utilizator kktsKetevan Tsimakuridze kkts Data 11 aprilie 2023 23:58:57
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:64: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] 64 | for(int i = 0; i < x.size(); i++) { | ~~^~~~~~~~~~ main.cpp:83: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] 83 | for(int j = 0; j < seg[x[i]].size(); j++) upd(seg[x[i]][j]); | ~~^~~~~~~~~~~~~~~~~~ main.cpp:85: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] 85 | 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
1386ms110919kbIncorect0
2188ms66781kbOK4
3113ms80572kbIncorect0
414ms8421kbIncorect0
514ms2129kbIncorect0
6401ms98246kbIncorect0
739ms7979kbIncorect0
8391ms110579kbIncorect0
9183ms66441kbOK4
10108ms80072kbIncorect0
1114ms8159kbIncorect0
1214ms2129kbIncorect0
13401ms97894kbIncorect0
1439ms7962kbIncorect0
15391ms110575kbIncorect0
16163ms41365kbIncorect0
17113ms79982kbIncorect0
1814ms4411kbIncorect0
1914ms2134kbIncorect0
20401ms97861kbIncorect0
2139ms8003kbIncorect0
22272ms68595kbOK5
2324ms4341kbIncorect0
24183ms50577kbOK5
Punctaj total18

Ceva nu functioneaza?