Pagini recente » Borderou de evaluare (job #1740589) | Borderou de evaluare (job #2749466) | Borderou de evaluare (job #2835115) | Borderou de evaluare (job #143129) | Borderou de evaluare (job #3121349)
Borderou de evaluare (job #3121349)
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:81:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
81 | for(int j = 0; j < seg[x[i]].size(); j++) upd(seg[x[i]][j]);
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:83: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]
83 | 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 | 371ms | 104448kb | Incorect | 0 |
2 | 183ms | 64712kb | OK | 4 |
3 | 108ms | 79175kb | Incorect | 0 |
4 | 14ms | 8421kb | Incorect | 0 |
5 | 14ms | 2129kb | Incorect | 0 |
6 | 386ms | 91508kb | Incorect | 0 |
7 | 34ms | 6848kb | Incorect | 0 |
8 | 381ms | 104071kb | Incorect | 0 |
9 | 178ms | 64331kb | OK | 4 |
10 | 108ms | 78868kb | Incorect | 0 |
11 | 14ms | 8159kb | Incorect | 0 |
12 | 14ms | 2129kb | Incorect | 0 |
13 | 381ms | 91115kb | Incorect | 0 |
14 | 34ms | 6836kb | Incorect | 0 |
15 | 371ms | 104071kb | Incorect | 0 |
16 | 158ms | 39129kb | Incorect | 0 |
17 | 108ms | 78770kb | Incorect | 0 |
18 | 14ms | 4395kb | Incorect | 0 |
19 | 14ms | 2129kb | Incorect | 0 |
20 | 386ms | 91090kb | Incorect | 0 |
21 | 34ms | 6787kb | Incorect | 0 |
22 | 262ms | 62586kb | OK | 5 |
23 | 19ms | 4087kb | Incorect | 0 |
24 | 173ms | 46567kb | OK | 5 |
Punctaj total | 18 |