Problem gift
User abcde271828
Submission Time 2026-02-08 22:51:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gift.cpp: In function ‘int32_t main()’:
gift.cpp:36:9: error: expected ‘(’ before numeric constant
36 | for 9int i = 1; i < n; i++) if (v[i-1] - v[i] >= k) ans++;
| ^~~~
| (
gift.cpp:36:9: error: unable to find numeric literal operator ‘operator""int’
36 | for 9int i = 1; i < n; i++) if (v[i-1] - v[i] >= k) ans++;
| ^~~~
gift.cpp:36:21: error: ‘i’ was not declared in this scope
36 | for 9int i = 1; i < n; i++) if (v[i-1] - v[i] >= k) ans++;
| ^