Problem burgers
User Tyx2019
Submission Time 2023-04-21 13:13:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

burgers.cpp:4:13: error: expected ‘}’ before ‘]’ token
4 | int A{100005],B[100005],C[100005];
| ~ ^
burgers.cpp:4:13: error: expected ‘,’ or ‘;’ before ‘]’ token
burgers.cpp: In function ‘bool works(long long int)’:
burgers.cpp:11:9: error: invalid types ‘long long int[long long int]’ for array subscript
11 | if(A[i]>B[i]) lessthan=min(lessthan,(long double)(X[i]-B[i]*N)/(A[i]-B[i]));
| ^
burgers.cpp:11:11: error: ‘B’ was not declared in this scope
11 | if(A[i]>B[i]) lessthan=min(lessthan,(long double)(X[i]-B[i]*N)/(A[i]-B[i]));
| ^
burgers.cpp:11:53: error: ‘X’ was not declared in this scope
11 | if(A[i]>B[i]) lessthan=min(lessthan,(long double)(X[i]-B[i]*N)/(A[i]-B[i]));
| ^
burgers.cpp:11:70: error: invalid types ‘long long int[long long int]’ for array subscript
11 | if(A[i]>B[i]) lessthan=min(lessth