Problem neckties
User Henries
Submission Time 2024-10-22 17:27:46
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: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:26:2: error: expected ‘,’ or ‘;’ before ‘for’
26 | for(int i =0;i<n;i++){
| ^~~
neckties.cpp:26:15: error: ‘i’ was not declared in this scope
26 | for(int i =0;i<n;i++){
| ^