Problem pushups
User YongXin
Submission Time 2023-06-03 21:46:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pushups.cpp: In function ‘int main()’:
pushups.cpp:10:2: error: expected initializer before ‘a’
10 | a[0]=1;
| ^
pushups.cpp:19:3: error: ‘a’ was not declared in this scope
19 | a[i]=max(a[i-1],r);
| ^
pushups.cpp:21:36: error: ‘a’ was not declared in this scope
21 | for (long long i=0;i<t;++i) cout<<a[b[i]-1]<<'\n';
| ^