Borderou de evaluare (job #644842)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Permutări1 (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 29 mar. 2022 19:54:04 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void debug(std::vector<int>)':
main.cpp:21:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
21 | for(int i = 0;i < v.size();i++) cout << v[i] << ' ';
| ~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:46:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
46 | while (next_permutation(cif.begin(), cif.end()));
| ^~~~~
main.cpp:47:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
47 | {
| ^
main.cpp:51:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
51 | for(int i = 0;i < cif.size();i++)
| ~~^~~~~~~~~~~~
main.cpp:60:30: error: break statement not within loop or switch
60 | if(pos == n - 1) break;
| ^~~~~