/ FWOJ /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:11:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if((int)sqrt(n)*(int)sqrt(n)==n)
  ^~
foo.cc:12:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   n+=(int)sqrt(n);9 
                   ^
foo.cc:13:2: error: expected ';' before 'if'
  if(s==n)
  ^~
foo.cc:14:25: warning: statement has no effect [-Wunused-value]
   cout<<n<<" is perfect";
                         ^
foo.cc:15:2: error: 'else' without a previous 'if'
  else
  ^~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1010 完全数
语言
C++
递交时间
2021-06-27 13:56:26
评测时间
2021-06-27 13:56:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes