Borderou de evaluare (job #2828394)
Utilizator | Data | 7 ianuarie 2022 10:55:23 | |
---|---|---|---|
Problema | Expresie2 | Status | done |
Runda | oji_clasa10_2019_2016..... | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int kthSmallest(std::vector<int>, int, int, int)':
main.cpp:46:12: error: 'INT_MAX' was not declared in this scope
46 | return INT_MAX;
| ^~~~~~~
main.cpp:6:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
5 | #include <algorithm>
+++ |+#include <climits>
6 |
main.cpp: In function 'int ps()':
main.cpp:65:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
65 | else if (s[i] == '-' || s[i] >= '0' && s[i] <= '9'){
main.cpp: In function 'int med()':
main.cpp:105:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
105 | else if (s[i] == '-' || s[i] >= '0' && s[i] <= '9'){
main.cpp: In function 'int main()':
main.cpp:135:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
135 | while (i < s.size())
| ~~^~~~~~~~~~
main.cpp:146:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
146 | else if (s[i] == '-' || s[i] >= '0' && s[i] <= '9'){
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !