Problem gotosleep
User PlayVoltz
Submission Time 2024-11-14 16:16:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gotosleep.cpp: In function ‘int32_t main()’:
gotosleep.cpp:43:36: error: ‘k’ was not declared in this scope
43 | for (int i=0; i<n; ++i)if (dp[i]<=k)ans=i+1;
| ^