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

Compile Error

bridge_apio15.cpp: In function ‘int main()’:
bridge_apio15.cpp:30:23: error: expected ‘;’ before ‘}’ token
30 | n2.push_back(b1)
| ^
| ;
31 | }
| ~
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 | whi