Problem bridge_apio15
User yc
Submission Time 2025-11-14 16:33:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bridge_apio15.cpp: In function ‘int main()’:
bridge_apio15.cpp:37:33: error: invalid types ‘long long int[long long int]’ for array subscript
37 | while (i<n2.size() and b(n[i])>b(n[i+1])){
| ^
bridge_apio15.cpp:37:43: error: invalid types ‘long long int[long long int]’ for array subscript
37 | while (i<n2.size() and b(n[i])>b(n[i+1])){
| ^
bridge_apio15.cpp:40:5: error: expected ‘}’ before ‘else’
40 | else {
| ^~~~
bridge_apio15.cpp:33:14: note: to match this ‘{’
33 | if (y>=x){
| ^
bridge_apio15.cpp:41:16: error: ‘i’ was not declared in this scope
41 | while (i>0 and b(n[i-1])<b(n[i])) i--;
| ^
bridge_apio15.cpp:43:17: error: ‘i’ was not declared in this scope
43 | cout<<ans+b(i);
| ^
bridge_apio15.cp