Problem | neckties |
---|---|
User | Henries |
Submission Time | 2024-10-22 17:27:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
neckties.cpp: In function ‘void solve(std::vector<long long int>, std::vector<long long int>, long long int)’:
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 | newties[i] = {newtie,i};
| ^
neckties.cpp:26:2: error: expected ‘,’ or ‘;’ before ‘for’
26 | for(int