Borderou de evaluare (job #806165)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Stalpi11 (clasele 11 și 12) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 ian. 2025 18:05:51 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:1: error: ISO C++ forbids declaration of 'minDeLaXCuStalpiDeLaI' with no type [-fpermissive]
13 | minDeLaXCuStalpiDeLaI(vvi a, int x, int i) {
| ^~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int minDeLaXCuStalpiDeLaI(std::vector<std::vector<int> >, int, int)':
main.cpp:16:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'unsigned int'} [-Wsign-compare]
16 | while(a[i][st] <= x && i<a.size()) {
| ~^~~~~~~~~
main.cpp:23:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'unsigned int'} [-Wsign-compare]
23 | while(i<a.size() && a[i][dr] <= maxx) i++;
| ~^~~~~~~~~
main.cpp:24:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'unsigned int'} [-Wsign-compare]
24 | if(i==a.size()) return 1;
| ~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:47:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'unsigned int'} [-Wsign-compare]
47 | for(int i=0; i<b.size()-1; i++) {
| ~^~~~~~~~~~~