제출 #1282471

#제출 시각아이디문제언어결과실행 시간메모리
1282471lyra_g13Lightning Rod (NOI18_lightningrod)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
inline int readInt() {
    int x = 0;
    char ch = getchar();
    while (ch < '0' || ch > '9') ch = _getchar_nolock();
    while (ch >= '0' && ch <= '9'){
		x = (x << 3) + (x << 1) + ch - '0';
		ch = _getchar_nolock();
	}
    return x;
}

int X[10000000], Y[10000000];

int main(){
	int N = readInt();
	for(int i = 0; i < N; i++) {
		X[i] = readInt();
		Y[i] = readInt();
	}
	std::cout << N;
	return 0;
}

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

Main.cpp: In function 'int readInt()':
Main.cpp:6:39: error: '_getchar_nolock' was not declared in this scope; did you mean 'getchar_unlocked'?
    6 |     while (ch < '0' || ch > '9') ch = _getchar_nolock();
      |                                       ^~~~~~~~~~~~~~~
      |                                       getchar_unlocked
Main.cpp:9:22: error: '_getchar_nolock' was not declared in this scope; did you mean 'getchar_unlocked'?
    9 |                 ch = _getchar_nolock();
      |                      ^~~~~~~~~~~~~~~
      |                      getchar_unlocked