Borderou de evaluare (job #2903867)
Utilizator | Data | 17 mai 2022 21:13:25 | |
---|---|---|---|
Problema | Mit | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: expected ',' or ';' before 'ofstream'
7 | ofstream fout("mit.out")
| ^~~~~~~~
main.cpp: In function 'void arbore(int, int, int, int, int)':
main.cpp:13:12: error: 'dr' was not declared in this scope; did you mean 'r'?
13 | if(poz>dr || poz<st){
| ^~
| r
main.cpp:13:22: error: 'st' was not declared in this scope; did you mean 'std'?
13 | if(poz>dr || poz<st){
| ^~
| std
main.cpp:17:9: error: 'ar' was not declared in this scope; did you mean 'r'?
17 | ar[nod]=val;
| ^~
| r
main.cpp:28:5: error: 'ar' was not declared in this scope; did you mean 'r'?
28 | ar[nod]=max(ar[2*nod], ar[2*nod+1]);
| ^~
| r
main.cpp: In function 'int maxi(int, int, int, int, int)':
main.cpp:37:16: error: 'ar' was not declared in this scope; did you mean 'r'?
37 | return ar[nod]+bon[nod];
| ^~
| r
main.cpp:37:24: error: 'bon' was not declared in this scope
37 | return ar[nod]+bon[nod];
| ^~~
main.cpp:42:35: error: 'bon' was not declared in this scope
42 | primu=maxi(2*nod, l, m, i, f)+bon[nod];
| ^~~
main.cpp: In function 'void bonus(int, int, int, int, int, int)':
main.cpp:53:9: error: 'bon' was not declared in this scope
53 | bon[nod]+=marit;
| ^~~
main.cpp:60:5: error: 'ar' was not declared in this scope; did you mean 'r'?
60 | ar[nod]=max(ar[2*nod]+bon[2*nod], ar[2*nod+1]+bon[2*nod+1]);
| ^~
| r
main.cpp:60:27: error: 'bon' was not declared in this scope
60 | ar[nod]=max(ar[2*nod]+bon[2*nod], ar[2*nod+1]+bon[2*nod+1]);
| ^~~
main.cpp: In function 'int main()':
main.cpp:75:9: error: 'f' was not declared in this scope
75 | f>>tip>>a>>b;
| ^
main.cpp:77:13: error: 'g' was not declared in this scope
77 | g<<maxi(1, 1, n, a, b)<<"\n";
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !