joi2019_ho_t3.cpp:61:13: error: '__int64' does not name a type; did you mean '__int64_t'?
#define int __int64
^
joi2019_ho_t3.cpp:63:1: note: in expansion of macro 'int'
int s[MAXN];
^~~
joi2019_ho_t3.cpp:61:13: error: '__int64' does not name a type; did you mean '__int64_t'?
#define int __int64
^
joi2019_ho_t3.cpp:64:1: note: in expansion of macro 'int'
int v[MAXN];
^~~
joi2019_ho_t3.cpp:61:13: error: '__int64' does not name a type; did you mean '__int64_t'?
#define int __int64
^
joi2019_ho_t3.cpp:65:1: note: in expansion of macro 'int'
int c[MAXN];
^~~
joi2019_ho_t3.cpp:67:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main() {
^
joi2019_ho_t3.cpp: In function 'int main()':
joi2019_ho_t3.cpp:61:13: error: '__int64' was not declared in this scope
#define int __int64
^
joi2019_ho_t3.cpp:72:5: note: in expansion of macro 'int'
int n = readInt(), m = readInt();
^~~
joi2019_ho_t3.cpp:61:13: note: suggested alternative: '__int64_t'
#define int __int64
^
joi2019_ho_t3.cpp:72:5: note: in expansion of macro 'int'
int n = readInt(), m = readInt();
^~~
joi2019_ho_t3.cpp:73:27: error: type/value mismatch at argument 1 in template parameter list for 'template<class _T1, class _T2> struct std::pair'
vector <pair <int, int> > vec;
^
joi2019_ho_t3.cpp:73:27: note: expected a type, got '__int64'
joi2019_ho_t3.cpp:73:27: error: type/value mismatch at argument 2 in template parameter list for 'template<class _T1, class _T2> struct std::pair'
joi2019_ho_t3.cpp:73:27: note: expected a type, got '__int64'
joi2019_ho_t3.cpp:73:29: error: template argument 1 is invalid
vector <pair <int, int> > vec;
^
joi2019_ho_t3.cpp:73:29: error: template argument 2 is invalid
joi2019_ho_t3.cpp:74:14: error: expected ';' before 'i'
for (int i = 1; i <= n; i++) {
^
joi2019_ho_t3.cpp:74:21: error: 'i' was not declared in this scope
for (int i = 1; i <= n; i++) {
^
joi2019_ho_t3.cpp:74:26: error: 'n' was not declared in this scope
for (int i = 1; i <= n; i++) {
^
joi2019_ho_t3.cpp:74:26: note: suggested alternative: 'yn'
for (int i = 1; i <= n; i++) {
^
yn
joi2019_ho_t3.cpp:75:9: error: 's' was not declared in this scope
s[i] = readInt(), v[i] = readInt();
^
joi2019_ho_t3.cpp:75:27: error: 'v' was not declared in this scope
s[i] = readInt(), v[i] = readInt();
^
joi2019_ho_t3.cpp:30:12: error: request for member 'push_back' in 'vec', which is of non-class type 'int'
#define pb push_back
^
joi2019_ho_t3.cpp:76:13: note: in expansion of macro 'pb'
vec.pb({v[i], s[i]});
^~
joi2019_ho_t3.cpp:78:14: error: request for member 'begin' in 'vec', which is of non-class type 'int'
sort(vec.begin(), vec.end());
^~~~~
joi2019_ho_t3.cpp:78:27: error: request for member 'end' in 'vec', which is of non-class type 'int'
sort(vec.begin(), vec.end());
^~~
joi2019_ho_t3.cpp:79:14: error: expected ';' before 'i'
for (int i = 0; i < m; i++) {
^
joi2019_ho_t3.cpp:79:21: error: 'i' was not declared in this scope
for (int i = 0; i < m; i++) {
^
joi2019_ho_t3.cpp:79:25: error: 'm' was not declared in this scope
for (int i = 0; i < m; i++) {
^
joi2019_ho_t3.cpp:79:25: note: suggested alternative: 'tm'
for (int i = 0; i < m; i++) {
^
tm
joi2019_ho_t3.cpp:80:9: error: 'c' was not declared in this scope
c[i] = readInt();
^
joi2019_ho_t3.cpp:82:10: error: 'c' was not declared in this scope
sort(c, c + m);
^
joi2019_ho_t3.cpp:82:17: error: 'm' was not declared in this scope
sort(c, c + m);
^
joi2019_ho_t3.cpp:82:17: note: suggested alternative: 'tm'
sort(c, c + m);
^
tm
joi2019_ho_t3.cpp:83:9: error: expected ';' before 'ans'
int ans = 0;
^~~
joi2019_ho_t3.cpp:84:14: error: expected ';' before 'i'
for (int i = n - 1; i >= 0 && ans < m; i--) {
^
joi2019_ho_t3.cpp:84:25: error: 'i' was not declared in this scope
for (int i = n - 1; i >= 0 && ans < m; i--) {
^
joi2019_ho_t3.cpp:84:35: error: 'ans' was not declared in this scope
for (int i = n - 1; i >= 0 && ans < m; i--) {
^~~
joi2019_ho_t3.cpp:84:35: note: suggested alternative: 'abs'
for (int i = n - 1; i >= 0 && ans < m; i--) {
^~~
abs
joi2019_ho_t3.cpp:89:13: error: 'ans' was not declared in this scope
cout << ans;
^~~
joi2019_ho_t3.cpp:89:13: note: suggested alternative: 'abs'
cout << ans;
^~~
abs