Problem swords
User PlayVoltz
Submission Time 2023-07-26 22:35:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:24:22: error: template argument 1 is invalid
24 | set <pair<int, int> vset;
| ^~~~
swords.cpp:24:22: error: template argument 2 is invalid
swords.cpp:24:22: error: template argument 3 is invalid
swords.cpp:29:33: error: ‘customcompare1’ was not declared in this scope; did you mean ‘customCompare1’?
29 | sort(vect.begin(), vect.end(), customcompare1);
| ^~~~~~~~~~~~~~
| customCompare1
swords.cpp:30:2: error: ‘vset’ was not declared in this scope
30 | vset.insert(vect[0]);
| ^~~~
swords.cpp:39:33: error: ‘customcompare2’ was not declared in this scope; did you mean ‘customCompare2’?
39 | sort(vect.begin(), vect.end(), customcompare2);
| ^~~~~~~~~~~~~~
| customCompare2