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)