Borderou de evaluare (job #2838258)
Utilizator | Data | 23 ianuarie 2022 12:02:00 | |
---|---|---|---|
Problema | Connect the Tree | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:27:5: error: conflicting declaration 'int ind [250001]'
27 | int ind[NMAX + 1];
| ^~~
main.cpp:22:5: note: previous declaration as 'int ind'
22 | int ind;
| ^~~
main.cpp: In function 'void upd(int, int, int)':
main.cpp:131:10: warning: statement has no effect [-Wunused-value]
131 | for (pos; pos <= n; pos += (pos & -pos)) {
| ^~~
main.cpp:130:9: warning: unused variable 'cppos' [-Wunused-variable]
130 | int cppos = pos;
| ^~~~~
main.cpp: In function 'long long int query(int)':
main.cpp:138:10: warning: statement has no effect [-Wunused-value]
138 | for (pos; pos > 0; pos -= (pos & -pos)) {
| ^~~
main.cpp:136:9: warning: unused variable 'cppos' [-Wunused-variable]
136 | int cppos = pos;
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !