Problem traineeline
User XinLoiDuongNgu
Submission Time 2025-08-01 21:07:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

traineeline.cpp: In function ‘int main()’:
traineeline.cpp:22:24: error: invalid use of ‘auto’
22 | dq.push_back(pair <auto{h,x}> );
| ^~~~
traineeline.cpp:22:32: error: too many initializers for ‘auto’
22 | dq.push_back(pair <auto{h,x}> );
| ^
traineeline.cpp:22:33: error: wrong number of template arguments (1, should be 2)
22 | dq.push_back(pair <auto{h,x}> );
| ^
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 traineeline.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: provided for ‘template<class _T1, class _T2> struct std::pair’
208 | struct pair