Borderou de evaluare (job #2647374)
Utilizator | Cristi Cretu etohirse | Data | 4 septembrie 2020 10:43:37 |
---|---|---|---|
Problema | Leftmax | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:1: error: 'ifstream' does not name a type
ifstream fin("leftmax.in");
^~~~~~~~
main.cpp:4:1: error: 'ofstream' does not name a type
ofstream fout("leftmax.out");
^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:10:3: error: 'fin' was not declared in this scope
fin >> n; v[0] = n + 1, v[n + 1] = n + 1, stiva[nrs = 1] = 0;
^~~
main.cpp:26:14: error: 'cnt' was not declared in this scope
ans = (cnt + (min(S,D) + 1) * (D - S + 2 + max(D,S)) / 2) % M;
^~~
main.cpp:26:28: error: 'min' was not declared in this scope
ans = (cnt + (min(S,D) + 1) * (D - S + 2 + max(D,S)) / 2) % M;
^
main.cpp:26:28: note: suggested alternative:
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/bits/stl_algobase.h:243:5: note: 'std::min'
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
main.cpp:26:57: error: 'max' was not declared in this scope
ans = (cnt + (min(S,D) + 1) * (D - S + 2 + max(D,S)) / 2) % M;
^
main.cpp:26:57: note: suggested alternative:
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/bits/stl_algobase.h:265:5: note: 'std::max'
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
main.cpp:28:3: error: 'fout' was not declared in this scope
fout << ans;
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !