Borderou de evaluare (job #3183126)
Utilizator | Data | 10 decembrie 2023 18:56:48 | |
---|---|---|---|
Problema | Zoo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void build(int, int, int)':
main.cpp:19:36: error: 'INT_MAX' was not declared in this scope
19 | aint[nod] = vector<int>(1, INT_MAX);
| ^~~~~~~
main.cpp:4:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
3 | #include <algorithm>
+++ |+#include <climits>
4 | using namespace std;
main.cpp:23:40: error: 'INT_MAX' was not declared in this scope
23 | aint[nod] = vector<int>(r - l + 1, INT_MAX);
| ^~~~~~~
main.cpp:23:40: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp: In function 'void update(int, int, int, int, int)':
main.cpp:49:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | while(i < (*left).size() and j < (*right).size()){
| ~~^~~~~~~~~~~~~~~~
main.cpp:49:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | while(i < (*left).size() and j < (*right).size()){
| ~~^~~~~~~~~~~~~~~~~
main.cpp:56:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | while(i < (*left).size())
| ~~^~~~~~~~~~~~~~~~
main.cpp:59:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | while(j < (*right).size())
| ~~^~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !