Problem gift
User ChessyBoy
Submission Time 2024-03-01 14:36:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gift.cpp: In function ‘int32_t main()’:
gift.cpp:10:6: error: ‘i’ was not declared in this scope
10 | for(i=0;i<n-1;i++){
| ^
gift.cpp:12:17: error: expected primary-expression before ‘)’ token
12 | if(curr-next>=) result++;
| ^