Pagini recente » Borderou de evaluare (job #2587860) | Borderou de evaluare (job #2344345) | Borderou de evaluare (job #137750) | Borderou de evaluare (job #1754860) | Borderou de evaluare (job #3121352)
Borderou de evaluare (job #3121352)
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 | 376ms | 104448kb | Incorect | 0 |
2 | 178ms | 64708kb | OK | 4 |
3 | 108ms | 79187kb | Incorect | 0 |
4 | 14ms | 8421kb | Incorect | 0 |
5 | 14ms | 2134kb | Incorect | 0 |
6 | 381ms | 91508kb | Incorect | 0 |
7 | 34ms | 6844kb | Incorect | 0 |
8 | 386ms | 104071kb | Incorect | 0 |
9 | 183ms | 64327kb | OK | 4 |
10 | 108ms | 78868kb | Incorect | 0 |
11 | 14ms | 8159kb | Incorect | 0 |
12 | 14ms | 2129kb | Incorect | 0 |
13 | 381ms | 91119kb | Incorect | 0 |
14 | 39ms | 6774kb | Incorect | 0 |
15 | 372ms | 104071kb | Incorect | 0 |
16 | 158ms | 39129kb | Incorect | 0 |
17 | 109ms | 78778kb | Incorect | 0 |
18 | 14ms | 4390kb | Incorect | 0 |
19 | 14ms | 2129kb | Incorect | 0 |
20 | 381ms | 91082kb | Incorect | 0 |
21 | 34ms | 6848kb | Incorect | 0 |
22 | 267ms | 62590kb | OK | 5 |
23 | 19ms | 4083kb | Incorect | 0 |
24 | 178ms | 46567kb | OK | 5 |
Punctaj total | 18 |