| Problem | xmas |
|---|---|
| User | LL |
| Submission Time | 2025-12-03 13:00:48 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
xmas.cpp: In function ‘int main()’:
xmas.cpp:8:14: error: wrong number of template arguments (1, should be 2)
8 | pair <ll. ll> arr[n];
| ^
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 xmas.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
| ^~~~
xmas.cpp:10:17: error: request for member ‘first’ in ‘arr[i]’, which is of non-class type ‘int’
10 | cin >> arr[i].first;
| ^~~~~
xmas.cpp:11:10: error: request for member ‘second’ in ‘arr[i]’, which is of non-class type ‘int’
11 | arr[i].second = i+1;
| ^~~~~~
xmas.cp