Problem doll_noi
User wrizz69
Submission Time 2024-12-26 12:05:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

doll_noi.cpp: In function ‘int32_t main()’:
doll_noi.cpp:27:22: error: ‘a’ was not declared in this scope
27 | for(int i = 0;i < n;a++) {
| ^
doll_noi.cpp:29:14: error: could not convert ‘{a, a}’ from ‘<brace-enclosed initializer list>’ to ‘ii’ {aka ‘std::pair<long long int, long long int>’}
29 | ii q = {a,a};
| ^
| |
| <brace-enclosed initializer list>
doll_noi.cpp:52:32: error: no matching function for call to ‘std::set<std::pair<long long int, long long int> >::insert(<brace-enclosed initializer list>)’
52 | s.erase(p); s.insert({st,a});
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from doll_noi.cpp:1:
/usr/include/c++/9/bits/stl_set.h:509:7: note: candidate: ‘std::p