Borderou de evaluare (job #646928)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cooler (clasele 9-10) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 9 apr. 2022 18:41:52 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:53:32: error: 'INT_MAX' was not declared in this scope
53 | int maxim = 0, minim = INT_MAX;
| ^~~~~~~
main.cpp:6:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
5 | #include <cstring>
+++ |+#include <climits>
6 |
main.cpp:66:45: warning: comparison of integer expressions of different signedness: 'int' and 'std::unordered_map<int, int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
66 | if (ok == true && maxim - minim + 1 == freq.size()) fout << maxim;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
main.cpp:93:53: warning: unused variable 'distincte' [-Wunused-variable]
93 | int maxLen = 0, nrMaxime = 0, minim, maxim, distincte;
| ^~~~~~~~~