Borderou de evaluare (job #3241127)
Utilizator | Data | 26 august 2024 19:14:03 | |
---|---|---|---|
Problema | Jocul Flip | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void showMatrix(IntMatrix)':
main.cpp:23:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for (int i = 0; i < a.size(); i++) {
| ~~^~~~~~~~~~
main.cpp:24:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for (int j = 0; j < a[i].size(); j++) {
| ~~^~~~~~~~~~~~~
main.cpp: In function 'int sumCalc(IntMatrix)':
main.cpp:47:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | for (int i = 0; i < a.size(); i++) {
| ~~^~~~~~~~~~
main.cpp:48:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | for (int j = 0; j < a[i].size(); j++) {
| ~~^~~~~~~~~~~~~
main.cpp: In function 'void changeRow(IntMatrix&, int)':
main.cpp:56:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for (int i = 0; i < a[temp].size(); i++) {
| ~~^~~~~~~~~~~~~~~~
main.cpp: In function 'void changeCol(IntMatrix&, int)':
main.cpp:62:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | for (int i = 0; i < a.size(); i++) {
| ~~^~~~~~~~~~
main.cpp: In function 'void finalSumVec(IntMatrix&, IntMatrix, std::string, int, int)':
main.cpp:85:5: error: expected ',' or ';' before 'if'
85 | if (c >= max) {
| ^~
main.cpp:84:9: warning: unused variable 'c' [-Wunused-variable]
84 | int c = sumCalc(a)
| ^
main.cpp:69:7: warning: unused variable 'max' [-Wunused-variable]
69 | int max = 0;
| ^~~
main.cpp: In function 'int main()':
main.cpp:101:11: error: 'finalSum' was not declared in this scope
101 | fout << finalSum(finalSumVec(a, b, aux, N, M));
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !