Problem neckties
User Henries
Submission Time 2024-10-22 17:27:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

neckties.cpp: In function ‘void solve(std::vector<long long int>, std::vector<long long int>, long long int)’:
neckties.cpp:4:16: error: ‘v’ was not declared in this scope
4 | newties.erase(v.begin()+eraseindex);
| ^
neckties.cpp:7:17: error: ‘n’ was not declared in this scope
7 | for(int i =0;i<n;i++){
| ^
neckties.cpp:8:29: error: ‘a’ was not declared in this scope
8 | long long current = max(0,a[i] - b[i]);
| ^
neckties.cpp:8:36: error: ‘b’ was not declared in this scope
8 | long long current = max(0,a[i] - b[i]);
| ^
neckties.cpp: In function ‘int main()’:
neckties.cpp:23:25: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’} in assignment
23 | ne