제출 #1207176

#제출 시각아이디문제언어결과실행 시간메모리
1207176santialt2철로 (IOI14_rail)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define ll int #define vl vector<ll> #define vb vector<bool> #define pb push_back #define ff(aa, bb, cc) for(ll aa = bb; aa < cc; aa++) #define pll pair<ll, ll> #define fi first #define se second #define ed "\n" #define all(aaa) aaa.begin(), aaa.end() ll MOD = 1e9+7; void buildWall(ll n, ll first, ll location[], ll stype[]){ location[0] = 0; stype[0] = 1; ff(i, 1, n){ ll dist = getDistance(0, i); location[i] = dist; stype[i] = 2; } }

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

rail.cpp: In function 'void buildWall(int, int, int*, int*)':
rail.cpp:19:27: error: 'getDistance' was not declared in this scope
   19 |                 ll dist = getDistance(0, i);
      |                           ^~~~~~~~~~~