Borderou de evaluare (job #3161305)

Utilizator bence.bekeszaboBeke-Szabo Bence bence.bekeszabo Data 26 octombrie 2023 16:40:48
Problema Războiul lui Vlăduț Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int kadaneWithPositions(std::vector<int>&, KadaneType, int&, int&)': main.cpp:15:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 15 | for (int i = 0; i < v.size(); i++) { | ~~^~~~~~~~~~ main.cpp: In function 'void readDiffMatrix(std::ifstream&, std::vector<std::vector<int> >&)': main.cpp:32:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 32 | for (int i = 0; i < v.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 < v[i].size(); j++) { | ~~^~~~~~~~~~~~~ main.cpp:37:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 37 | for (int i = 0; i < v.size(); i++) { | ~~^~~~~~~~~~ main.cpp:38:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 38 | for (int j = 0; j < v[i].size(); j++) { | ~~^~~~~~~~~~~~~ main.cpp: In function 'void printMatrix(std::vector<std::vector<int> >&)': main.cpp:47:23: 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 < v.size(); i++) { | ~~^~~~~~~~~~ main.cpp:48:27: 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 < v[i].size(); j++) { | ~~^~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:74:13: warning: variable 'bestLeft' set but not used [-Wunused-but-set-variable] 74 | int bestLeft = 0, bestRight = 0, bestUp = 0, bestDown = 0; | ^~~~~~~~ main.cpp:74:27: warning: variable 'bestRight' set but not used [-Wunused-but-set-variable] 74 | int bestLeft = 0, bestRight = 0, bestUp = 0, bestDown = 0; | ^~~~~~~~~ main.cpp:74:42: warning: variable 'bestUp' set but not used [-Wunused-but-set-variable] 74 | int bestLeft = 0, bestRight = 0, bestUp = 0, bestDown = 0; | ^~~~~~ main.cpp:74:54: warning: variable 'bestDown' set but not used [-Wunused-but-set-variable] 74 | int bestLeft = 0, bestRight = 0, bestUp = 0, bestDown = 0; | ^~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms303kbOK100
Punctaj total100

Ceva nu functioneaza?