Pagini recente » Borderou de evaluare (job #1642699) | Cod sursa (job #2332575) | Borderou de evaluare (job #1218361) | Borderou de evaluare (job #1223450) | Borderou de evaluare (job #3121357)
Borderou de evaluare (job #3121357)
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 | 624ms | 174497kb | Incorect | 0 |
| 2 | 361ms | 107560kb | OK | 4 |
| 3 | 173ms | 122761kb | Incorect | 0 |
| 4 | 19ms | 15507kb | Incorect | 0 |
| 5 | 14ms | 4751kb | Incorect | 0 |
| 6 | 590ms | 153407kb | Incorect | 0 |
| 7 | 54ms | 10866kb | Incorect | 0 |
| 8 | 704ms | 174673kb | Incorect | 0 |
| 9 | 292ms | 106270kb | OK | 4 |
| 10 | 193ms | 122466kb | Incorect | 0 |
| 11 | 19ms | 14450kb | Incorect | 0 |
| 12 | 14ms | 4751kb | Incorect | 0 |
| 13 | 674ms | 153862kb | Incorect | 0 |
| 14 | 59ms | 10973kb | Incorect | 0 |
| 15 | 560ms | 172498kb | Incorect | 0 |
| 16 | 182ms | 55152kb | Incorect | 0 |
| 17 | 163ms | 121536kb | Incorect | 0 |
| 18 | 14ms | 4493kb | Incorect | 0 |
| 19 | 14ms | 4489kb | Incorect | 0 |
| 20 | 530ms | 152174kb | Incorect | 0 |
| 21 | 44ms | 10977kb | Incorect | 0 |
| 22 | 347ms | 105947kb | OK | 5 |
| 23 | 24ms | 7028kb | Incorect | 0 |
| 24 | 208ms | 69275kb | OK | 5 |
| Punctaj total | 18 |