Borderou de evaluare (job #3146631)

Utilizator catalinmarincatalinmarin catalinmarin Data 21 august 2023 22:15:18
Problema Divk 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:30:31: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int' 30 | two_pointers(v[i], b, raspuns_maxim_b); | ^~~~~~~~~~~~~~~ main.cpp:10:61: note: initializing argument 3 of 'void two_pointers(std::vector<long long int>, int, int&)' 10 | void two_pointers(vector<long long> v, int max_length, int &max_answer){ | ~~~~~^~~~~~~~~~ main.cpp:31:35: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int' 31 | two_pointers(v[i], a - 1, raspuns_maxim_a); | ^~~~~~~~~~~~~~~ main.cpp:10:61: note: initializing argument 3 of 'void two_pointers(std::vector<long long int>, int, int&)' 10 | void two_pointers(vector<long long> v, int max_length, int &max_answer){ | ~~~~~^~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?