Problem binaryroads
User jeongwonho64
Submission Time 2023-12-01 09:25:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binaryroads.cpp: In function ‘int32_t main()’:
binaryroads.cpp:27:25: error: ‘INF’ was not declared in this scope
27 | dist[i][0]=dist[i][1]=INF;
| ^~~
binaryroads.cpp:40:45: error: ‘INF’ was not declared in this scope
40 | if (dist[i.first][!c.second] != INF) continue;
| ^~~
binaryroads.cpp:55:46: error: ‘INF’ was not declared in this scope
55 | cout<<(min(dist[n-1][0],dist[n-1][1]) == INF ? -1 : min(dist[n-1][0],dist[n-1][1]))<<endl;
| ^~~