Borderou de evaluare (job #2790073)
Utilizator | Data | 28 octombrie 2021 13:48:37 | |
---|---|---|---|
Problema | Numere 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:22:15: error: 'INT_MAX' was not declared in this scope
22 | int n, min = INT_MAX, max = INT_MIN;
| ^~~~~~~
main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <fstream>
+++ |+#include <climits>
3 |
main.cpp:36:12: error: 'max' was not declared in this scope; did you mean 'std::max'?
36 | if (i > max)
| ^~~
| std::max
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: 'std::max' declared here
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
main.cpp:41:29: error: 'max' was not declared in this scope; did you mean 'std::max'?
41 | std::cout << min << ' ' << max;
| ^~~
| std::max
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: 'std::max' declared here
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !