Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:24:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   else
   ^~~~
/in/foo.cc:26:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
    cout<<tiger;
    ^~~~
/in/foo.cc:6:73: warning: unused variable 'snake' [-Wunused-variable]
  int bald_eagle[paraponera],monkey,ant,elephant,japanese_crane,scorpion,snake,tiger=0,lion;
                                                                         ^~~~~
/in/foo.cc: At global scope:
/in/foo.cc:30:2: error: expected unqualified-id before 'if'
  if(ant>elephant) 
  ^~
/in/foo.cc:32:2: error: expected unqualified-id before 'return'
  return 0;
  ^~~~~~
/in/foo.cc:33:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1168 折半查找
语言
C++
递交时间
2021-12-12 19:39:41
评测时间
2021-12-12 19:39:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes