记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:6:2: error: 'cin' was not declared in this scope
  cin>>a;
  ^~~
foo.cc:6:2: note: suggested alternative: 'main'
  cin>>a;
  ^~~
  main
foo.cc:12:8: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
  if(a^3+b^3+c^3==f)
       ~^~
foo.cc:12:12: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
  if(a^3+b^3+c^3==f)
           ~^~
foo.cc:12:16: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses]
  if(a^3+b^3+c^3==f)
               ~^~~
foo.cc:13:3: error: 'cout' was not declared in this scope
   cout<<"Y";
   ^~~~
foo.cc:15:3: error: 'cout' was not declared in this scope
   cout<<"N"
   ^~~~
foo.cc:5:15: warning: unused variable 'd' [-Wunused-variable]
     int a,b,c,d,f;
               ^

自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)

信息

递交者
类型
递交
题目
水仙花数
语言
C++
递交时间
2020-06-29 08:28:24
评测时间
2020-06-29 08:28:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes