Borderou de evaluare (job #3220736)
Utilizator | Data | 4 aprilie 2024 18:37:28 | |
---|---|---|---|
Problema | Kami | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:51: error: conflicting declaration 'long long int poz'
11 | long long S[100103],V[100103],sol,a[100103],s,upd,poz;
| ^~~
main.cpp:10:13: note: previous declaration as 'int poz'
10 | int n,i,tip,poz,Q;
| ^~~
main.cpp: In function 'void update_sum(int, long long int)':
main.cpp:18:9: warning: statement has no effect [-Wunused-value]
18 | for(poz;poz;poz-=(poz&(-poz)))
| ^~~
main.cpp: In function 'long long int query_sum(int)':
main.cpp:24:9: warning: statement has no effect [-Wunused-value]
24 | for(poz;poz<=n;poz+=(poz&(-poz)))
| ^~~
main.cpp: In function 'int main()':
main.cpp:151:23: error: 'val' was not declared in this scope
151 | fin>>poz>>val;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !