Borderou de evaluare (job #3222016)
Utilizator | Data | 8 aprilie 2024 21:17:16 | |
---|---|---|---|
Problema | Distincte | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void update(int, int)':
main.cpp:76:9: warning: statement has no effect [-Wunused-value]
76 | for(poz;poz<=n;poz+=(poz&(-poz)))
| ^~~
main.cpp: In function 'long long int query(int)':
main.cpp:84:9: warning: statement has no effect [-Wunused-value]
84 | for(poz;poz;poz-=(poz&(-poz)))
| ^~~
main.cpp: In function 'int main()':
main.cpp:104:32: error: 'dr' was not declared in this scope
104 | update(f[V[st]],-V[dr]);
| ^~
main.cpp:109:57: error: 'MOD' was not declared in this scope
109 | sol[Q[i].ind]=(query(Q[i].dr)-query(Q[i].st-1))%MOD;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !