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)进行评测。