| Problem | gift |
|---|---|
| User | Yaoru |
| Submission Time | 2025-11-14 13:07:25 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
gift.cpp: In function ‘int main()’:
gift.cpp:3:12: error: expected primary-expression before ‘]’ token
3 | int main(){]
| ^
gift.cpp:5:10: error: ‘n’ was not declared in this scope
5 | cin>>n>>k;
| ^
gift.cpp:5:13: error: ‘k’ was not declared in this scope
5 | cin>>n>>k;
| ^
gift.cpp:8:14: error: ‘times’ was not declared in this scope; did you mean ‘time’?
8 | cin>>times[i];
| ^~~~~
| time
gift.cpp:12:12: error: ‘times’ was not declared in this scope; did you mean ‘time’?
12 | if(times[i-1]-times[i]>=k){
| ^~~~~
| time