Problem gift
User cobnet
Submission Time 2025-03-12 23:41:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gift.cpp: In function ‘int main()’:
gift.cpp:5:2: error: expected initializer before ‘for’
5 | for(int c=0;c<N;c++){
| ^~~
gift.cpp:5:14: error: ‘c’ was not declared in this scope
5 | for(int c=0;c<N;c++){
| ^
gift.cpp:10:9: error: ‘A’ was not declared in this scope
10 | int h=A[c]-A[c-1];
| ^