Borderou de evaluare (job #684197)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | 235 (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 dec. 2022 09:55:43 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void debug(std::vector<int>)':
main.cpp:52:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
52 | for(int i = 0;i < v.size();i++) cout << v[i] << ' ';
| ~~^~~~~~~~~~
main.cpp: In function 'std::string decToBin(int, int)':
main.cpp:71:22: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare]
71 | while(ans.size() < sz) ans.insert(ans.begin(), '0');
| ~~~~~~~~~~~^~~~
main.cpp:64:9: warning: unused variable 'it' [-Wunused-variable]
64 | int it = 0;
| ^~
main.cpp: In function 'int main()':
main.cpp:90:24: error: 'INT_MAX' was not declared in this scope
90 | if((pt2 * 2) < INT_MAX)
| ^~~~~~~
main.cpp:41:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
40 | #include <valarray>
+++ |+#include <climits>
41 | #include <vector>
main.cpp:98:24: error: 'INT_MAX' was not declared in this scope
98 | if((pt3 * 3) < INT_MAX)
| ^~~~~~~
main.cpp:98:24: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp:106:22: error: 'INT_MAX' was not declared in this scope
106 | if(pt5 * 5 < INT_MAX)
| ^~~~~~~
main.cpp:106:22: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp:147:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
147 | for(int i = 0;i < v.size();i++)
| ~~^~~~~~~~~~
main.cpp:170:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
170 | while(st < v.size())
| ~~~^~~~~~~~~~
main.cpp:175:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'unsigned int'} [-Wsign-compare]
175 | for(int i = st;i + p2[it] < sum.size();)
| ~~~~~~~~~~~^~~~~~~~~~~~