# 1번째 컴파일 단계
Alice.cpp: In function 'std::vector<std::pair<int, int> > Alice()':
Alice.cpp:9:15: error: 'x' was not declared in this scope
9 | v[i-1]={x%i+1,i+1};
| ^
Alice.cpp:9:24: error: no match for 'operator=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} and '<brace-enclosed initializer list>')
9 | v[i-1]={x%i+1,i+1};
| ^
In file included from /usr/include/c++/13/bits/stl_algobase.h:64,
from /usr/include/c++/13/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from Alice.cpp:1:
/usr/include/c++/13/bits/stl_pair.h:439:9: note: candidate: 'template<class _U1, class _U2> constexpr std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) requires _S_assignable<const _U1&, const _U2&>() [with _U2 = _U1; _T1 = int; _T2 = int]'
439 | operator=(const pair<_U1, _U2>& __p)
| ^~~~~~~~
/usr/include/c++/13/bits/stl_pair.h:439:9: note: template argument deduction/substitution failed:
Alice.cpp:9:24: note: couldn't deduce template parameter '_U1'
9 | v[i-1]={x%i+1,i+1};
| ^
/usr/include/c++/13/bits/stl_pair.h:451:9: note: candidate: 'template<class _U1, class _U2> constexpr std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) requires _S_assignable<_U1, _U2>() [with _U2 = _U1; _T1 = int; _T2 = int]'
451 | operator=(pair<_U1, _U2>&& __p)
| ^~~~~~~~
/usr/include/c++/13/bits/stl_pair.h:451:9: note: template argument deduction/substitution failed:
Alice.cpp:9:24: note: couldn't deduce template parameter '_U1'
9 | v[i-1]={x%i+1,i+1};
| ^
/usr/include/c++/13/bits/stl_pair.h:416:7: note: candidate: 'constexpr std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_T1, _T2>&) requires _S_assignable<const _T1&, const _T2&>() [with _T1 = int; _T2 = int]'
416 | operator=(const pair& __p)
| ^~~~~~~~
/usr/include/c++/13/bits/stl_pair.h:416:29: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::pair<int, int>&'
416 | operator=(const pair& __p)
| ~~~~~~~~~~~~^~~
/usr/include/c++/13/bits/stl_pair.h:427:7: note: candidate: 'constexpr std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_T1, _T2>&&) requires _S_assignable<_T1, _T2>() [with _T1 = int; _T2 = int]'
427 | operator=(pair&& __p)
| ^~~~~~~~
/usr/include/c++/13/bits/stl_pair.h:427:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::pair<int, int>&&'
427 | operator=(pair&& __p)
| ~~~~~~~^~~