Borderou de evaluare (job #2825817)
Utilizator | Data | 5 ianuarie 2022 10:24:54 | |
---|---|---|---|
Problema | Tigri | Status | done |
Runda | Algoritmiada 2022 Runda 1 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int Value(std::string)':
main.cpp:14:44: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for (int i = (nr[0] == '-' ? 1 : 0); i < nr.size(); ++ i )
| ~~^~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:56:59: error: 'INT_MAX' was not declared in this scope
56 | if (1LL * bani - 1LL * v_x * v_y <= 1LL * INT_MAX && 1LL * bani - 1LL * v_x * v_y >= 0 && 1LL * tigru + 1LL * v_x >= 0) {
| ^~~~~~~
main.cpp:2:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
1 | #include <fstream>
+++ |+#include <climits>
2 |
main.cpp:68:75: error: 'INT_MAX' was not declared in this scope
68 | if (tigru >= v_x && 1LL * v_x * v_y + 1LL * bani <= 1LL * INT_MAX && 1LL * v_x * v_y + 1LL * bani >= 0) {
| ^~~~~~~
main.cpp:68:75: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !