제출 #54866

#제출 시각아이디문제언어결과실행 시간메모리
54866linkretPrinted Circuit Board (CEOI12_circuit)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>

using namespace std;

typedef pair<int, int> pii;
#define f first
#define s second

const int maxn = 1e5 + 10;

int n;
pii p[maxn];



int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);

	cin >> n;

	for(int i = 0; i < n; i++) {
		cin >> p[i].f >> p[i].s;
	}

	for(int i = 0; i < 20; i++) {
		if(i & 1)
			sort(p, p + n);
		else
			sort(p, p + n, greater<pii>())
	}

	cout << 0 << endl;

	return 0;
}

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

circuit.cpp: In function 'int main()':
circuit.cpp:31:2: error: expected ';' before '}' token
  }
  ^