Problem swords
User R9q5P8
Submission Time 2026-01-30 14:31:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:14:29: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _Key, class _Compare, class _Alloc> class std::multiset’
14 | multiset<pair<int, int>, fs> swords(n, make_pair(0, 0));
| ^
swords.cpp:14:29: note: expected a type, got ‘fs’
swords.cpp:14:56: error: expression list treated as compound expression in initializer [-fpermissive]
14 | multiset<pair<int, int>, fs> swords(n, make_pair(0, 0));
| ^
swords.cpp:14:50: error: cannot convert ‘std::pair<int, int>’ to ‘int’ in initialization
14 | multiset<pair<int, int>, fs> swords(n, make_pair(0, 0));
| ~~~~~~~~~^~~~~~
| |
|