Problem swapbuildings
User Nikelodean
Submission Time 2025-12-05 16:32:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swapbuildings.cpp: In function ‘int main()’:
swapbuildings.cpp:9:16: error: ‘inti’ was not declared in this scope; did you mean ‘int’?
9 | int h[n]; for(inti=0;i<n;i++) {cin>>h[i];}
| ^~~~
| int
swapbuildings.cpp:9:23: error: ‘i’ was not declared in this scope
9 | int h[n]; for(inti=0;i<n;i++) {cin>>h[i];}
| ^