Problem goodseq
User Hijackedsoul
Submission Time 2024-11-25 17:28:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

goodseq.cpp: In function ‘int32_t main()’:
goodseq.cpp:10:15: error: ‘x’ was not declared in this scope
10 | std::cin >> x;
| ^
goodseq.cpp:14:45: error: expected ‘;’ before ‘else’
14 | if(v.second>v.first) ans+=v.second-v.first
| ^
| ;
15 | else if(v.second<v.first) ans+=v.second;
| ~~~~