Problem trains
User Schzeey2
Submission Time 2024-01-05 12:45:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trains.cpp: In function ‘int main()’:
trains.cpp:26:38: error: expected ‘)’ before ‘;’ token
26 | ans = min(ans, dp[i] + (n-i)*(n-i);
| ~ ^
| )