Problem minju
User Henries
Submission Time 2024-12-28 11:10:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minju.cpp: In function ‘int main()’:
minju.cpp:67:25: error: ‘neighbour’ was not declared in this scope; did you mean ‘neighbor’?
67 | if (abs(dist[b]-dist[neighbour) < abs(dist[a]-dist[neighbour]){
| ^~~~~~~~~
| neighbor
minju.cpp:67:34: error: expected ‘]’ before ‘)’ token
67 | if (abs(dist[b]-dist[neighbour) < abs(dist[a]-dist[neighbour]){
| ^
| ]
minju.cpp:67:66: error: expected ‘)’ before ‘{’ token
67 | if (abs(dist[b]-dist[neighbour) < abs(dist[a]-dist[neighbour]){
| ~ ^
| )