bubblesort2.cpp: In function 'void add(std::pair<int, int>)':
bubblesort2.cpp:55:21: error: no matching function for call to 'index(int&)'
55 | int plc = index(p.f);
| ^
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:48,
from bubblesort2.cpp:1:
/usr/include/strings.h:55:1: note: candidate: 'char* index(char*, int)'
55 | index (char *__s, int __c) __THROW
| ^~~~~
/usr/include/strings.h:55:1: note: candidate expects 2 arguments, 1 provided
/usr/include/strings.h:61:1: note: candidate: 'const char* index(const char*, int)'
61 | index (const char *__s, int __c) __THROW
| ^~~~~
/usr/include/strings.h:61:1: note: candidate expects 2 arguments, 1 provided
bubblesort2.cpp:14:5: note: candidate: 'int index(std::pair<int, int>)'
14 | int index(pair<int,int> k) {
| ^~~~~
bubblesort2.cpp:14:25: note: no known conversion for argument 1 from 'int' to 'std::pair<int, int>'
14 | int index(pair<int,int> k) {
| ~~~~~~~~~~~~~~^
bubblesort2.cpp: In function 'void omit(std::pair<int, int>)':
bubblesort2.cpp:61:21: error: no matching function for call to 'index(int&)'
61 | int plc = index(p.f);
| ^
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:48,
from bubblesort2.cpp:1:
/usr/include/strings.h:55:1: note: candidate: 'char* index(char*, int)'
55 | index (char *__s, int __c) __THROW
| ^~~~~
/usr/include/strings.h:55:1: note: candidate expects 2 arguments, 1 provided
/usr/include/strings.h:61:1: note: candidate: 'const char* index(const char*, int)'
61 | index (const char *__s, int __c) __THROW
| ^~~~~
/usr/include/strings.h:61:1: note: candidate expects 2 arguments, 1 provided
bubblesort2.cpp:14:5: note: candidate: 'int index(std::pair<int, int>)'
14 | int index(pair<int,int> k) {
| ^~~~~
bubblesort2.cpp:14:25: note: no known conversion for argument 1 from 'int' to 'std::pair<int, int>'
14 | int index(pair<int,int> k) {
| ~~~~~~~~~~~~~~^
bubblesort2.cpp:62:33: error: too few arguments to function 'void update(int, int, int, int, int, int)'
62 | update(1, 1, N, plc, -1e7 - p.s);
| ^
bubblesort2.cpp:30:6: note: declared here
30 | void update(int k, int a, int b, int q_l, int q_r, int val) {
| ^~~~~~
bubblesort2.cpp: In function 'std::vector<int> countScans(std::vector<int>, std::vector<int>, std::vector<int>)':
bubblesort2.cpp:75:22: error: too few arguments to function 'void update(int, int, int, int, int, int)'
75 | update(1, 1, N, -1e7);
| ^
bubblesort2.cpp:30:6: note: declared here
30 | void update(int k, int a, int b, int q_l, int q_r, int val) {
| ^~~~~~