Problem | swords |
---|---|
User | lolbeast |
Submission Time | 2025-02-25 15:01:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:7:20: error: class template argument deduction failed:
7 | pair(long, long) swords[n];
| ^
swords.cpp:7:20: error: no matching function for call to ‘pair()’
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from swords.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:442:40: note: candidate: ‘template<class _T1, class _T2> std::pair(_T1, _T2)-> std::pair<_T1, _T2>’
442 | template<typename _T1, typename _T2> pair(_T1, _T2) -> pair<_T1, _T2>;
| ^~~~
/usr/include/c++/9/bits/stl_pair.h:442:40: note: template argument deduction/substitution failed:
swords.cpp:7:20: note: candid