foo.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
foo.cc:39:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main () {
^
foo.cc: In function 'int main()':
foo.cc:43:1: error: 'cin' was not declared in this scope
cin>>x>>y;
^~~
foo.cc:43:1: note: suggested alternative: 'main'
cin>>x>>y;
^~~
main
foo.cc:45:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
for (i=0;i=x&&list[i]
~^~~~~~~~~~~
foo.cc:45:21: error: expected ';' at end of input
for (i=0;i=x&&list[i]
^
foo.cc:45:21: error: expected primary-expression at end of input
foo.cc:45:21: error: expected ')' at end of input
foo.cc:45:21: error: expected statement at end of input
foo.cc:45:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (i=0;i=x&&list[i]
^~~
cc1plus: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
foo.cc:41:11: warning: unused variable 'n' [-Wunused-variable]
int x,y,i,n=0;
^
foo.cc:45:21: error: expected '}' at end of input
for (i=0;i=x&&list[i]
^
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。