Submission #1282471

#TimeUsernameProblemLanguageResultExecution timeMemory
1282471lyra_g13Lightning Rod (NOI18_lightningrod)C++20
Compilation error
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;
}

Compilation message (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