Pagini recente » Borderou de evaluare (job #835424) | Borderou de evaluare (job #295421) | Borderou de evaluare (job #1636988) | Borderou de evaluare (job #2719659) | Borderou de evaluare (job #3121066)
Borderou de evaluare (job #3121066)
Raport evaluator
Compilare:
main.cpp: In function 'void add0(int)':
main.cpp:14:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for(int j = 0; j < op[1][x].size(); j++) {
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int add(int)':
main.cpp:21:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int j = 0; j < op[0][x].size(); j++) {
| ~~^~~~~~~~~~~~~~~~~
main.cpp:28:1: warning: no return statement in function returning non-void [-Wreturn-type]
28 | }
| ^
main.cpp: In function 'void upd(int)':
main.cpp:31:9: warning: statement has no effect [-Wunused-value]
31 | for(id; id <= x.back(); id += id & (-id)) t[id]++;
| ^~
main.cpp: In function 'int get(int)':
main.cpp:35:9: warning: statement has no effect [-Wunused-value]
35 | for(id; id >= 1; id -= id & (-id)) c += t[id];
| ^~
main.cpp: At global scope:
main.cpp:38:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
38 | main(){
| ^~~~
main.cpp: In function 'int main()':
main.cpp:57:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | for(int i = 0; i < x.size(); i++) {
| ~~^~~~~~~~~~
main.cpp:77:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
77 | for(int j = 0; j < seg[x[i]].size(); j++) upd(seg[x[i]][j]);
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:79:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
79 | for(int j = 0; j < V[x[i]].size(); j++) ans += (ll)get(V[x[i]][j].f) * V[x[i]][j].s;
| ~~^~~~~~~~~~~~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 24ms | 667kb | Incorect | 0 |
| 2 | 24ms | 671kb | Incorect | 0 |
| 3 | 24ms | 667kb | Incorect | 0 |
| 4 | 24ms | 671kb | Incorect | 0 |
| 5 | 24ms | 667kb | Incorect | 0 |
| 6 | 28ms | 716kb | Incorect | 0 |
| 7 | 24ms | 667kb | Incorect | 0 |
| 8 | 24ms | 667kb | Incorect | 0 |
| 9 | 24ms | 667kb | Incorect | 0 |
| 10 | 24ms | 659kb | Incorect | 0 |
| 11 | 24ms | 667kb | Incorect | 0 |
| 12 | 24ms | 667kb | Incorect | 0 |
| 13 | 24ms | 659kb | Incorect | 0 |
| 14 | 24ms | 667kb | Incorect | 0 |
| 15 | 24ms | 663kb | Incorect | 0 |
| 16 | 24ms | 671kb | Incorect | 0 |
| 17 | 24ms | 663kb | Incorect | 0 |
| 18 | 24ms | 671kb | Incorect | 0 |
| 19 | 24ms | 667kb | Incorect | 0 |
| 20 | 24ms | 667kb | Incorect | 0 |
| 21 | 24ms | 667kb | Incorect | 0 |
| 22 | 29ms | 720kb | Incorect | 0 |
| 23 | 24ms | 663kb | Incorect | 0 |
| 24 | 24ms | 663kb | Incorect | 0 |
| Punctaj total | 0 |