Borderou de evaluare (job #2799277)
Utilizator | Data | 12 noiembrie 2021 19:25:02 | |
---|---|---|---|
Problema | Tabara2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int query(int, int, int, int, int)':
main.cpp:27:10: error: 'mid' was not declared in this scope
27 | if(qr<=mid) return query(ql, qr, l, mid, 2*cr);
| ^~~
main.cpp:28:6: error: 'mid' was not declared in this scope
28 | if(mid<ql) return query(ql, qr, mid+1, r, 2*cr+1);
| ^~~
main.cpp:29:24: error: 'mid' was not declared in this scope
29 | return max(query(ql, mid, l, mid, 2*cr), query(mid+1, qr, mid+1, r, 2*cr+1));
| ^~~
main.cpp: In function 'void join(int, int)':
main.cpp:41:7: error: declaration of 'int a' shadows a parameter
41 | int a=get(a), b=get(b);
| ^
main.cpp:40:15: note: 'int a' previously declared here
40 | void join(int a, int b){
| ~~~~^
main.cpp:41:17: error: declaration of 'int b' shadows a parameter
41 | int a=get(a), b=get(b);
| ^
main.cpp:40:22: note: 'int b' previously declared here
40 | void join(int a, int b){
| ~~~~^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !