记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:2: error: 'else' without a previous 'if'
  else if(x==0)
  ^~~~
/in/foo.cc:10:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  else if(x==0)
       ^~
/in/foo.cc:12:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   cout<<y<<endl;
   ^~~~
/in/foo.cc:14:2: error: 'else' without a previous 'if'
  else y=3*x*x;
  ^~~~

信息

递交者
类型
递交
题目
求函数的值
语言
C++
递交时间
2018-05-27 20:42:51
评测时间
2018-05-27 20:42:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes