Borderou de evaluare (job #2918211)
Utilizator | Data | 10 august 2022 14:46:18 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:1: error: 'ifstream' does not name a type
1 | ifstream f("arbint.in");
| ^~~~~~~~
main.cpp:2:1: error: 'ofstream' does not name a type
2 | ofstream g("arbint.out");
| ^~~~~~~~
main.cpp: In member function 'void AINT::update(int, int, int, int, int)':
main.cpp:21:17: error: 'max' was not declared in this scope
21 | v[node]=max(v[2*node],v[2*node+1]);
| ^~~
main.cpp: In member function 'int AINT::query(int, int, int, int, int)':
main.cpp:35:16: error: 'max' was not declared in this scope
35 | return max(query(2*node,st,mij,l,r),query(2*node+1,mij+1,dr,l,r));
| ^~~
main.cpp: In function 'int main()':
main.cpp:42:5: error: 'fin' was not declared in this scope
42 | fin>>n>>m;
| ^~~
main.cpp:45:9: error: 'f' was not declared in this scope
45 | f>>x;
| ^
main.cpp:50:9: error: 'f' was not declared in this scope
50 | f>>nr>>a>>b;
| ^
main.cpp:54:13: error: 'g' was not declared in this scope
54 | g<<aint.query(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 !