foo.cc:2:11: error: '::main' must return 'int'
void main()
^
foo.cc: In function 'int main()':
foo.cc:9:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (x == i*i*i + j*j*j + k*k * k);
^~
foo.cc:10:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
printf("Yes");
^~~~~~
foo.cc:11:5: error: 'else' without a previous 'if'
else
^~~~
foo.cc:5:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务