/ Vijos /

记录详情

Compile Error

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

信息

递交者
类型
递交
题目
P1216 亲和数
语言
C++
递交时间
2021-03-25 21:02:35
评测时间
2021-03-25 21:02:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes