Problem mountainjourney
User calvinkulit
Submission Time 2026-06-24 09:31:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mountainjourney.cpp: In function ‘int main()’:
mountainjourney.cpp:16:27: error: ‘greatest’ was not declared in this scope
16 | sort(B.begin(), B.end(), greatest<int>());
| ^~~~~~~~
mountainjourney.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
mountainjourney.cpp:16:36: note: in expansion of macro ‘int’
16 | sort(B.begin(), B.end(), greatest<int>());
| ^~~
mountainjourney.cpp:18:20: error: expected ‘;’ before ‘}’ token
18 | A.push_back(B[i])
| ^
| ;
19 | }
| ~
mountainjourney.cpp:21:15: error: expected ‘;’ before ‘}’ token
21 | cout << A[i]
| ^
| ;
22 | }
| ~