Problem pushups
User yc
Submission Time 2025-05-24 07:22:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pushups.cpp:5:14: error: array bound is not an integer constant before ‘]’ token
5 | long long X[x];
| ^
pushups.cpp: In function ‘int main()’:
pushups.cpp:11:9: error: ‘X’ was not declared in this scope
11 | X[i] = 0;
| ^
pushups.cpp:15:13: error: ‘X’ was not declared in this scope
15 | X[j-1] = X[j-1]+i;
| ^
pushups.cpp:21:9: error: ‘X’ was not declared in this scope
21 | cout<<X[y-1]<<"\n";
| ^