Problem WA1
User bribritt
Submission Time 2024-05-13 09:33:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

WA1.cpp: In function ‘int main()’:
WA1.cpp:8:2: error: ‘vector’ was not declared in this scope
8 | vector<int> v;
| ^~~~~~
WA1.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;
WA1.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
WA1.cpp:8:9: note: in expansion of macro ‘int’
8 | vector<int> v;
| ^~~
WA1.cpp:11:3: error: ‘v’ was not declared in this scope
11 | v.push_back(x<<30|y);
| ^
WA1.cpp:13:7: error: ‘v’ was not declared in this scope
13 | sort(v.begin(),v.end());
| ^
WA1.cpp:13:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
13 | sort(v.begin(),v.end());
| ^~~~
| qsort