Borderou de evaluare (job #3132746)
Utilizator | Data | 23 mai 2023 19:04:30 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:1: error: 'ifstream' does not name a type
4 | ifstream f("rmq.in");
| ^~~~~~~~
main.cpp:5:1: error: 'ofstream' does not name a type
5 | ofstream g("rmq.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:10:5: error: 'f' was not declared in this scope
10 | f >> n >> m;
| ^
main.cpp:16:18: error: 'put' was not declared in this scope; did you mean 'putw'?
16 | if(i+put <= n) r[i][p] = min(r[i][p-1],r[i+put][p-1]);
| ^~~
| putw
main.cpp:16:39: error: 'min' was not declared in this scope; did you mean 'std::min'?
16 | if(i+put <= n) r[i][p] = min(r[i][p-1],r[i+put][p-1]);
| ^~~
| std::min
In file included from /usr/include/c++/12.2.1/string:50,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/stl_algobase.h:278:5: note: 'std::min' declared here
278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
main.cpp:18:9: error: 'put' was not declared in this scope; did you mean 'putw'?
18 | put <<= 1;
| ^~~
| putw
main.cpp:23:12: error: 'left' was not declared in this scope; did you mean 'std::left'?
23 | f>>left>>right;
| ^~~~
| std::left
/usr/include/c++/12.2.1/bits/ios_base.h:1038:3: note: 'std::left' declared here
1038 | left(ios_base& __base)
| ^~~~
main.cpp:23:18: error: 'right' was not declared in this scope; did you mean 'std::right'?
23 | f>>left>>right;
| ^~~~~
| std::right
/usr/include/c++/12.2.1/bits/ios_base.h:1046:3: note: 'std::right' declared here
1046 | right(ios_base& __base)
| ^~~~~
main.cpp:32:9: error: 'g' was not declared in this scope
32 | g << min(r[left][p],r[right-pt+1][p]) << endl;
| ^
main.cpp:32:14: error: 'min' was not declared in this scope; did you mean 'std::min'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !