Problem binaryroads
User Jinxuan
Submission Time 2023-12-27 16:56:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binaryroads.cpp: In function ‘int32_t main()’:
binaryroads.cpp:40:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
40 | if (a>=1000000;&&b>=1000000;) cout << -1;
| ^~~~~~~
binaryroads.cpp:40:29: error: expected ‘)’ before ‘;’ token
40 | if (a>=1000000;&&b>=1000000;) cout << -1;
| ~ ^
| )
binaryroads.cpp:40:30: error: expected primary-expression before ‘)’ token
40 | if (a>=1000000;&&b>=1000000;) cout << -1;
| ^
binaryroads.cpp:41:2: error: ‘else’ without a previous ‘if’
41 | else cout << min(a,b);
| ^~~~
binaryroads.cpp:40:19: error: label ‘b’ used but not defined
40 | if (a>=1000000;&&b>=1000000;) cout << -1;
| ^