Pagini recente » Borderou de evaluare (job #1635236) | Borderou de evaluare (job #2172805) | Borderou de evaluare (job #1819249) | Borderou de evaluare (job #914604) | Borderou de evaluare (job #3150746)
Borderou de evaluare (job #3150746)
Raport evaluator
Compilare:
main.cpp: In function 'void find_sum_log(std::vector<int>&, int)':
main.cpp:24:26: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
24 | if ((n >> i) & 1 == 1)
| ~~^~~~
main.cpp: In function 'void read(std::vector<std::vector<int> >)':
main.cpp:31:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for (int i = 0; i < matrix.size(); i++)
| ~~^~~~~~~~~~~~~~~
main.cpp:33:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | 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:44:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | if (node.first >= matrix.size() || node.second >= matrix[0].size())
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~
main.cpp:44:56: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | if (node.first >= matrix.size() || node.second >= matrix[0].size())
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
main.cpp:49:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | if (A.first + 1 < matrix.size() && A.second + 1 < matrix[0].size())
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp:49:53: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | 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:55:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | for(int i = 0; i < sum_of_2.size() - 1; i++)
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp:61:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
61 | for (int j = 0; j <= matrix[i].size() -1 -i; j++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:63:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for (int j = i + 1; j < matrix.size() && matrix[j][matrix[j].size() -1 -i] == 0; j++)
| ~~^~~~~~~~~~~~~~~
main.cpp:69:18: warning: statement has no effect [-Wunused-value]
69 | for (j; j < matrix[line].size() && matrix[line - 1][j + 1] == 0; j++)
| ^
main.cpp:69:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | for (j; j < matrix[line].size() && matrix[line - 1][j + 1] == 0; j++)
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:87:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
87 | for (int i = 0; i < matrix.size(); i++)
| ~~^~~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 303kb | Incorect! | 0 |
2 | 7ms | 557kb | Incorect! | 0 |
3 | 7ms | 557kb | Incorect! | 0 |
4 | 9ms | 557kb | Incorect! | 0 |
5 | 9ms | 557kb | Incorect! | 0 |
6 | 14ms | 794kb | Incorect! | 0 |
7 | 14ms | 815kb | Incorect! | 0 |
8 | 13ms | 782kb | Incorect! | 0 |
9 | 14ms | 819kb | Incorect! | 0 |
10 | 14ms | 798kb | Incorect! | 0 |
Punctaj total | 0 |