제출 #1221322

#제출 시각아이디문제언어결과실행 시간메모리
1221322sula2Advertisement 2 (JOI23_ho_t2)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#define all(a) (a).begin(), (a).end()
using namespace std;

int main() {
    int n; cin >> n;
    pair<int,int> a[n];
    // x[j] - x[i] <= e[i] - e[j]
    // x[j] + e[j] <= e[i] + x[i]
    //
    // x[i] - x[j] <= e[i] - e[j]
    // e[j] - x[j] <= e[i] - x[i]
    //
    // X[j] <= X[i]
    // Y[j] <= Y[i]
    for (auto& [x, y] : a) {
        int pos, inf; cin >> pos >> inf;
        x = inf + pos;
        y = -(inf - pos);
    }
    sort(a, a+n);
    multiset<int> lis;
    for (auto [x, y] : a) {
        y = -y;
        auto it = 
    }
    cout << lis.size();
}

컴파일 시 표준 에러 (stderr) 메시지

Main.cpp: In function 'int main()':
Main.cpp:26:5: error: expected primary-expression before '}' token
   26 |     }
      |     ^
Main.cpp:26:5: error: expected ',' or ';' before '}' token