Pagini recente » Borderou de evaluare (job #2284762) | Borderou de evaluare (job #1388546) | Borderou de evaluare (job #2970516) | Borderou de evaluare (job #2345834) | Borderou de evaluare (job #3121351)
Borderou de evaluare (job #3121351)
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:84:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
84 | for(int j = 0; j < seg[x[i]].size(); j++) upd(seg[x[i]][j]);
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:86: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]
86 | 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 | 104460kb | Incorect | 0 |
2 | 178ms | 64708kb | OK | 4 |
3 | 108ms | 79179kb | Incorect | 0 |
4 | 14ms | 8421kb | Incorect | 0 |
5 | 14ms | 2129kb | Incorect | 0 |
6 | 376ms | 91508kb | Incorect | 0 |
7 | 39ms | 6840kb | Incorect | 0 |
8 | 381ms | 104071kb | Incorect | 0 |
9 | 183ms | 64335kb | OK | 4 |
10 | 108ms | 78868kb | Incorect | 0 |
11 | 14ms | 8159kb | Incorect | 0 |
12 | 14ms | 2129kb | Incorect | 0 |
13 | 381ms | 91115kb | Incorect | 0 |
14 | 34ms | 6844kb | Incorect | 0 |
15 | 376ms | 104079kb | Incorect | 0 |
16 | 153ms | 39141kb | Incorect | 0 |
17 | 108ms | 78778kb | Incorect | 0 |
18 | 14ms | 4390kb | Incorect | 0 |
19 | 14ms | 2129kb | Incorect | 0 |
20 | 381ms | 91090kb | Incorect | 0 |
21 | 34ms | 6840kb | Incorect | 0 |
22 | 262ms | 62586kb | OK | 5 |
23 | 19ms | 4083kb | Incorect | 0 |
24 | 173ms | 46567kb | OK | 5 |
Punctaj total | 18 |