Submission #718426

#TimeUsernameProblemLanguageResultExecution timeMemory
718426pafag93064Towns (IOI15_towns)C++14
Compilation error
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; }

Compilation message (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) {
      |                       ~~~~^~~