Borderou de evaluare (job #3032644)
Utilizator | Data | 22 martie 2023 16:02:24 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int join(int, int)':
main.cpp:7:5: error: named return values are no longer supported
7 | return max(x,y);
| ^~~~~~
main.cpp:9:8: error: 'st' was not declared in this scope; did you mean 'std'?
9 | if(st==dr) {
| ^~
| std
main.cpp:9:12: error: 'dr' was not declared in this scope
9 | if(st==dr) {
| ^~
main.cpp:10:11: error: 'cr' was not declared in this scope
10 | v[cr]=a;
| ^~
main.cpp:10:15: error: 'a' was not declared in this scope
10 | v[cr]=a;
| ^
main.cpp:11:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
11 | return;
| ^~~~~~
main.cpp:13:14: error: 'st' was not declared in this scope; did you mean 'std'?
13 | int mid=(st+dr)/2;
| ^~
| std
main.cpp:13:17: error: 'dr' was not declared in this scope
13 | int mid=(st+dr)/2;
| ^~
main.cpp:14:8: error: 'poz' was not declared in this scope
14 | if(poz<=mid) update(a, poz, st, mid, 2*cr);
| ^~~
main.cpp:14:25: error: 'a' was not declared in this scope
14 | if(poz<=mid) update(a, poz, st, mid, 2*cr);
| ^
main.cpp:14:44: error: 'cr' was not declared in this scope
14 | if(poz<=mid) update(a, poz, st, mid, 2*cr);
| ^~
main.cpp:14:18: error: 'update' was not declared in this scope
14 | if(poz<=mid) update(a, poz, st, mid, 2*cr);
| ^~~~~~
main.cpp:15:29: error: 'a' was not declared in this scope
15 | else if(poz>mid) update(a,poz, mid+1, dr, 2*cr+1);
| ^
main.cpp:15:49: error: 'cr' was not declared in this scope
15 | else if(poz>mid) update(a,poz, mid+1, dr, 2*cr+1);
| ^~
main.cpp:15:22: error: 'update' was not declared in this scope
15 | else if(poz>mid) update(a,poz, mid+1, dr, 2*cr+1);
| ^~~~~~
main.cpp:16:7: error: 'cr' was not declared in this scope
16 | v[cr]=join(v[2*cr], v[2*cr+1]);
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !