Problem lengthsort
User Ys
Submission Time 2023-08-24 21:34:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp:3:1: error: ‘vector’ does not name a type
3 | vector <pair<int,string>> v;
| ^~~~~~
lengthsort.cpp:5:1: error: ‘string’ does not name a type
5 | string w;
| ^~~~~~
lengthsort.cpp:6:11: error: ‘pair’ was not declared in this scope
6 | bool comp(pair <int, string> a, pair <int, string> b){
| ^~~~
lengthsort.cpp:1:1: note: ‘std::pair’ is defined in header ‘<utility>’; did you forget to ‘#include <utility>’?
+++ |+#include <utility>
1 | using namespace std;
lengthsort.cpp:2:13: error: expected primary-expression before ‘long’
2 | #define int long long
| ^~~~
lengthsort.cpp:6:17: note: in expansion of macro ‘int’
6 | bool comp(pair <int, string> a, pair <int, string> b){
| ^~~
lengthsort.cpp:6:22: error: ‘string’ was not declared in this scope
6 | bool comp(pair <int,