| Problem | razlika |
|---|---|
| User | zhangdi |
| Submission Time | 2026-01-28 16:40:01 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
razlika.cpp: In function ‘int32_t main()’:
razlika.cpp:35:33: error: expected ‘}’ before ‘)’ token
35 | smol.emplace_back({diff[x-1],x);
| ~ ^
razlika.cpp:35:33: error: no matching function for call to ‘std::deque<std::pair<long long int, long long int> >::emplace_back(<brace-enclosed initializer list>)’
In file included from /usr/include/c++/9/deque:69,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from razlika.cpp:1:
/usr/include/c++/9/bits/deque.tcc:162:7: note: candidate: ‘std::deque<_Tp, _Alloc>::reference std::deque<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::deque<_Tp, _Alloc>::reference = std::pair<long long int, long long int>&]’
162 | deque<_Tp, _Alloc>::