Problem cny
User shenshiqi
Submission Time 2026-04-29 07:30:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cny.cpp: In function ‘int main()’:
cny.cpp:8:2: error: ‘vector’ was not declared in this scope
8 | vector <ll> e;
| ^~~~~~
cny.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
cny.cpp:3:12: error: expected primary-expression before ‘long’
3 | #define ll long long
| ^~~~
cny.cpp:8:10: note: in expansion of macro ‘ll’
8 | vector <ll> e;
| ^~
cny.cpp:12:19: error: ‘e’ was not declared in this scope
12 | if (num%2 == 0) e.push_back(num);
| ^
cny.cpp:15:7: error: ‘e’ was not declared in this scope
15 | sort(e.begin(), e.end(), greater<ll>());
| ^
cny.cpp:15:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
15 | sort(e.begin(), e.end()