foo.cc: In function ‘int js1(int, int)’:
foo.cc:46:19: error: a function-definition is not allowed here before ‘{’ token
46 | bool kuohao(int x){
| ^
foo.cc:56:26: error: a function-definition is not allowed here before ‘{’ token
56 | int js(int x,int b,int e){
| ^
foo.cc:89:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
89 | int main()
| ^~
foo.cc:89:9: note: remove parentheses to default-initialize a variable
89 | int main()
| ^~
| --
foo.cc:89:9: note: or replace parentheses with braces to value-initialize a variable
foo.cc:90:1: error: a function-definition is not allowed here before ‘{’ token
90 | {
| ^
foo.cc:136:2: error: expected ‘}’ at end of input
136 | }
| ^
foo.cc:14:21: note: to match this ‘{’
14 | int js1(int b,int e){
| ^
foo.cc:136:2: warning: control reaches end of non-void function [-Wreturn-type]
136 | }
| ^