Borderou de evaluare (job #2981239)
Utilizator | Data | 17 februarie 2023 16:16:11 | |
---|---|---|---|
Problema | Lexicografic | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'ok query(int, int, int, int, int)':
main.cpp:61:16: error: 'INT_MAX' was not declared in this scope
61 | rez.minn = INT_MAX;
| ^~~~~~~
main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <vector>
+++ |+#include <climits>
3 | #define NMAX 250005
main.cpp: In function 'int main()':
main.cpp:153:37: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
153 | while (k != 0 && rez.size() < n)
| ~~~~~~~~~~~^~~
main.cpp:169:24: error: 'INT_MAX' was not declared in this scope
169 | v[x.poz] = INT_MAX;
| ^~~~~~~
main.cpp:169:24: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp:175:25: error: 'INT_MAX' was not declared in this scope
175 | if (v[i] != INT_MAX)
| ^~~~~~~
main.cpp:175:25: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp:179:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
179 | for (i = 0; i < rez.size(); ++i)
| ~~^~~~~~~~~~~~
main.cpp:136:15: warning: unused variable 'j' [-Wunused-variable]
136 | int t, i, j, n, k;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !