Pagini recente » Borderou de evaluare (job #1903087) | Borderou de evaluare (job #3201394) | Borderou de evaluare (job #1509359) | Borderou de evaluare (job #2053447) | Borderou de evaluare (job #3121355)
Borderou de evaluare (job #3121355)
Raport evaluator
Compilare:
main.cpp: In function 'void add0(long long int)':
main.cpp:17:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long 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(long long int)':
main.cpp:24:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long 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(long long 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 'long long int get(long long 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:62:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | for(int i = 0; i < x.size(); i++) {
| ~~^~~~~~~~~~
main.cpp:81:26: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long 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: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
83 | for(int j = 0; j < V[x[i]].size(); j++) ans += get(V[x[i]][j].f) * V[x[i]][j].s;
| ~~^~~~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 580ms | 166412kb | Incorect | 0 |
2 | 356ms | 107438kb | OK | 4 |
3 | 168ms | 114745kb | Incorect | 0 |
4 | 19ms | 10518kb | Incorect | 0 |
5 | 14ms | 2654kb | Incorect | 0 |
6 | 595ms | 149286kb | Incorect | 0 |
7 | 49ms | 10678kb | Incorect | 0 |
8 | 659ms | 166596kb | Incorect | 0 |
9 | 292ms | 106086kb | OK | 4 |
10 | 183ms | 114601kb | Incorect | 0 |
11 | 14ms | 9207kb | Incorect | 0 |
12 | 14ms | 2654kb | Incorect | 0 |
13 | 669ms | 149684kb | Incorect | 0 |
14 | 54ms | 10522kb | Incorect | 0 |
15 | 520ms | 164630kb | Incorect | 0 |
16 | 183ms | 55074kb | Incorect | 0 |
17 | 153ms | 113385kb | Incorect | 0 |
18 | 14ms | 4489kb | Incorect | 0 |
19 | 14ms | 2392kb | Incorect | 0 |
20 | 530ms | 148066kb | Incorect | 0 |
21 | 44ms | 10338kb | Incorect | 0 |
22 | 302ms | 105922kb | OK | 5 |
23 | 24ms | 6926kb | Incorect | 0 |
24 | 198ms | 69263kb | OK | 5 |
Punctaj total | 18 |