Pagini recente » Borderou de evaluare (job #2906947) | Borderou de evaluare (job #2734984) | Borderou de evaluare (job #2801821) | Borderou de evaluare (job #3030275) | Borderou de evaluare (job #3121350)
Borderou de evaluare (job #3121350)
Raport evaluator
Compilare:
main.cpp: In function 'void add0(int)':
main.cpp:17:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<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(int)':
main.cpp:24:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<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(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 'int get(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: 'int' and 'std::vector<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: 'int' and 'std::vector<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: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
85 | 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 | 386ms | 104452kb | Incorect | 0 |
2 | 178ms | 64720kb | OK | 4 |
3 | 108ms | 79183kb | Incorect | 0 |
4 | 14ms | 8421kb | Incorect | 0 |
5 | 14ms | 2129kb | Incorect | 0 |
6 | 381ms | 91500kb | Incorect | 0 |
7 | 34ms | 6840kb | Incorect | 0 |
8 | 371ms | 104067kb | Incorect | 0 |
9 | 178ms | 64331kb | OK | 4 |
10 | 108ms | 78868kb | Incorect | 0 |
11 | 14ms | 8159kb | Incorect | 0 |
12 | 14ms | 2129kb | Incorect | 0 |
13 | 381ms | 91119kb | Incorect | 0 |
14 | 34ms | 6807kb | Incorect | 0 |
15 | 381ms | 104071kb | Incorect | 0 |
16 | 158ms | 39129kb | Incorect | 0 |
17 | 108ms | 78774kb | Incorect | 0 |
18 | 14ms | 4395kb | Incorect | 0 |
19 | 14ms | 2129kb | Incorect | 0 |
20 | 386ms | 91095kb | Incorect | 0 |
21 | 38ms | 6778kb | Incorect | 0 |
22 | 267ms | 62586kb | OK | 5 |
23 | 19ms | 4083kb | Incorect | 0 |
24 | 173ms | 46563kb | OK | 5 |
Punctaj total | 18 |