Problem mountains
User 13ikaeel
Submission Time 2024-02-24 09:07:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mountains.cpp: In function ‘int main()’:
mountains.cpp:2:2: error: ‘ll’ was not declared in this scope
2 | ll n;cin>>n;
| ^~
mountains.cpp:2:7: error: ‘cin’ was not declared in this scope
2 | ll n;cin>>n;
| ^~~
mountains.cpp:2:12: error: ‘n’ was not declared in this scope
2 | ll n;cin>>n;
| ^
mountains.cpp:4:2: error: ‘vector’ was not declared in this scope
4 | vector<ll> heights(n);
| ^~~~~~
mountains.cpp:4:13: error: ‘heights’ was not declared in this scope
4 | vector<ll> heights(n);
| ^~~~~~~
mountains.cpp:5:8: error: expected ‘;’ before ‘i’
5 | for(ll i{};i<n;i++){
| ^~
| ;
mountains.cpp:5:13: error: ‘i’ was not declared in this scope
5 | for(ll i{};i<n;i++){
| ^
mountains.cpp:9:4: error: expected ‘;’ before ‘result’
9 | ll result{};