Borderou de evaluare (job #3255291)

Utilizator Nasa1004Ema Nicole Gheorghe Nasa1004 Data 10 noiembrie 2024 00:18:07
Problema Plimbare Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:48:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 48 | for(int i = 0; i < ctc.size(); i++) | ~~^~~~~~~~~~~~ main.cpp:51:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 51 | for(int i = 0; i < ctc.size(); i++) { | ~~^~~~~~~~~~~~ main.cpp:52:26: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 52 | if(ctc[i].size() == maxx) { | ~~~~~~~~~~~~~~^~~~~~~ main.cpp:55:17: error: 'ans' was not declared in this scope; did you mean 'abs'? 55 | ans.push_back(nod); | ^~~ | abs main.cpp:61:13: error: 'ans' was not declared in this scope; did you mean 'abs'? 61 | cout << ans.size() << '\n'; | ^~~ | abs Non zero exit status: 1

Ceva nu functioneaza?