Problem inequality
User Xiaoyang
Submission Time 2023-02-17 17:07:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

inequality.cpp:25:11: error: expected initializer before ‘b’
25 | ll a[maxn]b[maxn];
| ^
inequality.cpp: In function ‘int main()’:
inequality.cpp:30:19: error: ‘a’ was not declared in this scope
30 | rep(i,1,n+1)cin>>a[i];
| ^
inequality.cpp:31:19: error: ‘b’ was not declared in this scope
31 | rep(i,1,n+1)cin>>b[i];
| ^
inequality.cpp:34:4: error: ‘a’ was not declared in this scope
34 | a[i]+=b[i];
| ^
inequality.cpp:34:10: error: ‘b’ was not declared in this scope
34 | a[i]+=b[i];
| ^
inequality.cpp:53:7: error: ‘a’ was not declared in this scope
53 | if(a[i]<=a[i-j]){
| ^
inequality.cpp:58:7: error: ‘a’ was not declared in this scope
58 | if(a[i]<=a[i+j]){
| ^
inequality.cpp:63:14: error: ‘a’ was not declared in this scope
63 | ans+=lf*rt*a[i];