Borderou de evaluare (job #748760)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Traseu (clasele 11 și 12) | Compilator | cpp-32 |
Rundă | lasm_01_12_2023_clasa11 | Status | evaluat |
Dată | 1 dec. 2023 17:43:36 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:33: error: invalid declarator before ';' token
4 | typedef vector <int> vector<int>;
| ^
main.cpp:5:49: error: invalid declarator before ';' token
5 | typedef vector <vector<int>> vector<vector<int>>;
| ^
main.cpp: In function 'std::vector<int> pf(std::vector<std::vector<int> >)':
main.cpp:26:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'unsigned int'} [-Wsign-compare]
26 | while (i < a.size() - 1 || j < a[0].size() - 1) {
| ~~^~~~~~~~~~~~~~
main.cpp:26:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
26 | while (i < a.size() - 1 || j < a[0].size() - 1) {
| ~~^~~~~~~~~~~~~~~~~
main.cpp:27:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
27 | if (j + 1 < a[0].size() && i + 1 < a.size()) {
| ~~~~~~^~~~~~~~~~~~~
main.cpp:27:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'unsigned int'} [-Wsign-compare]
27 | if (j + 1 < a[0].size() && i + 1 < a.size()) {
| ~~~~~~^~~~~~~~~~
main.cpp:35:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
35 | } else if (j + 1 < a[0].size()) {
| ~~~~~~^~~~~~~~~~~~~
main.cpp:38:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'unsigned int'} [-Wsign-compare]
38 | } else if (i + 1 < a.size()) {
| ~~~~~~^~~~~~~~~~
main.cpp: In function 'int ps(std::vector<int>)':
main.cpp:48:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
48 | for (int i = 0; i < L.size(); i++) {
| ~~^~~~~~~~~~