제출 #718426

#제출 시각아이디문제언어결과실행 시간메모리
718426pafag93064도시들 (IOI15_towns)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; int hubDistance(int N,int sub) { int maxd=0; for(int i=0;i<N;i++) { for(int j=0;j<i;j++) { maxd=max(maxd,getDistance(i,j)); } } return maxd/2; }

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

towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:7:27: error: 'getDistance' was not declared in this scope; did you mean 'hubDistance'?
    7 |             maxd=max(maxd,getDistance(i,j));
      |                           ^~~~~~~~~~~
      |                           hubDistance
towns.cpp:3:27: warning: unused parameter 'sub' [-Wunused-parameter]
    3 | int hubDistance(int N,int sub) {
      |                       ~~~~^~~