Borderou de evaluare (job #3282128)

Utilizator iulia_morariuIuli Morariu iulia_morariu Data 4 martie 2025 17:11:08
Problema Free Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'std::vector<long long int> impartire(std::vector<long long int>&, ll, ll)': main.cpp:24:5: error: 'reverse' was not declared in this scope 24 | reverse(C.begin(), C.end()); | ^~~~~~~ main.cpp: In function 'std::vector<long long int> adunare(std::vector<long long int>&, std::vector<long long int>&, ll)': main.cpp:33:22: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare] 33 | for(int i = 0; i < max(A.size(), B.size()) || t > 0; i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:34:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 34 | if(i < A.size()) t += A[i]; | ~~^~~~~~~~~~ main.cpp:35:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 35 | if(i < B.size()) t += B[i]; | ~~^~~~~~~~~~ main.cpp: In function 'std::vector<long long int> inmultire(std::vector<long long int>&, std::vector<long long int>&, ll)': main.cpp:44:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 44 | for(int i = 0; i < A.size(); i++){ | ~~^~~~~~~~~~ main.cpp:45:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 45 | for(int j = 0; j < B.size(); j++) C[i + j] += A[i] * B[j]; | ~~^~~~~~~~~~ main.cpp:55:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 55 | for(int i = 0; i <= A.size() + B.size() - 2 || t > 0; i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:56:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 56 | if(i < C.size()){ | ~~^~~~~~~~~~ main.cpp: In function 'std::vector<long long int> scadere(std::vector<long long int>&, std::vector<long long int>&, ll)': main.cpp:72:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 72 | for(int i = 0; i < A.size(); i++){ | ~~^~~~~~~~~~ main.cpp:73:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | if(i < B.size()) C.push_back(A[i] - B[i]); | ~~^~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?