Problem simcity
User personjs
Submission Time 2025-03-05 16:06:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

simcity.cpp: In function ‘int main()’:
simcity.cpp:11:36: error: ‘d’ was not declared in this scope
11 | for (int i=0; i<n; i++) cin >> d[i];
| ^
simcity.cpp:17:44: error: ‘d’ was not declared in this scope
17 | for (int i=0; i<n; i++) ans = min(ans, d[i]);
| ^
simcity.cpp:18:16: error: expected ‘;’ before ‘}’ token
18 | cout << ans
| ^
| ;
19 | }
| ~