Problem pancake
User Pan
Submission Time 2024-01-08 20:46:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pancake.cpp: In function ‘void solve()’:
pancake.cpp:62:15: error: expected ‘;’ before ‘vector’
62 | n = readInt()
| ^
| ;
63 | vector<ll> arr(n), dis(n);
| ~~~~~~
pancake.cpp:66:26: error: ‘arr’ was not declared in this scope
66 | for (ll i=0; i<n; ++i) {arr[i] = readInt(); dis[i] = arr[i];}
| ^~~
pancake.cpp:66:46: error: ‘dis’ was not declared in this scope; did you mean ‘div’?
66 | for (ll i=0; i<n; ++i) {arr[i] = readInt(); dis[i] = arr[i];}
| ^~~
| div
pancake.cpp:67:7: error: ‘dis’ was not declared in this scope; did you mean ‘div’?
67 | sort(dis.begin(), dis.end());
| ^~~
| div
pancake.cpp:69:68: error: ‘arr’ was not declared in this scope
69 | for (ll i=0; i<n; ++i) {x[i] =