Borderou de evaluare (job #3150729)

Utilizator StefanL2005Stefan Leustean StefanL2005 Data 18 septembrie 2023 09:42:13
Problema NumberOfPaths Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:1: error: expected ',' or ';' before 'int' 8 | int dx[] = {0, 0, 1}; | ^~~ main.cpp: In function 'void find_sum_log(std::vector<int>&, int)': main.cpp:23:26: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] 23 | if ((n >> i) & 1 == 1) | ~~^~~~ main.cpp: In function 'void read(std::vector<std::vector<int> >)': main.cpp:30:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 30 | for (int i = 0; i < matrix.size(); i++) | ~~^~~~~~~~~~~~~~~ main.cpp:32:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 32 | for (int j = 0; j < matrix[i].size(); j++) | ~~^~~~~~~~~~~~~~~~~~ main.cpp: In function 'void complete_max_log(std::pair<int, int>, std::vector<std::vector<int> >&)': main.cpp:42:41: error: 'dx' was not declared in this scope; did you mean 'dy'? 42 | auto node = make_pair(A.first + dx[i], A.second + dy[i]); | ^~ | dy main.cpp:48:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 48 | if (A.first + 1 < matrix.size() && A.second + 1 < matrix[0].size()) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.cpp:48:53: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 48 | if (A.first + 1 < matrix.size() && A.second + 1 < matrix[0].size()) | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ main.cpp: In function 'void complete_rest(std::vector<std::vector<int> >&, std::vector<int>&)': main.cpp:54:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 54 | for(int i = 0; i < sum_of_2.size() - 1; i++) | ~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:60:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 60 | for (int j = 1; j < matrix[0].size() && matrix[matrix.size() -1 -i][j] == 0; j++) | ~~^~~~~~~~~~~~~~~~~~ main.cpp:66:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 66 | for (int j = 0; j <= matrix[line].size() -1 -i; j++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:68:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 68 | for (line = line + 1; line < matrix.size() && matrix[line][matrix[line].size() -1 -i] == 0; line++) | ~~~~~^~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:83:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 83 | for (int i = 0; i < matrix.size(); i++) | ~~^~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?