/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:26: error: expected ';' before 's'
   for(j=2,flag=1;(i>=j*j)s&& flag;j++)
                          ^
/in/foo.cc:10:27: warning: for increment expression has no effect [-Wunused-value]
   for(j=2,flag=1;(i>=j*j)s&& flag;j++)
                          ~^~~~~~~
/in/foo.cc:10:34: error: expected ')' before ';' token
   for(j=2,flag=1;(i>=j*j)s&& flag;j++)
                                  ^
/in/foo.cc:10:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(j=2,flag=1;(i>=j*j)s&& flag;j++)
   ^~~
/in/foo.cc:10:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(j=2,flag=1;(i>=j*j)s&& flag;j++)
                                   ^
/in/foo.cc:10:38: error: expected ';' before ')' token
   for(j=2,flag=1;(i>=j*j)s&& flag;j++)
                                      ^
/in/foo.cc:7:6: warning: unused variable 'bl' [-Wunused-variable]
  int bl=sqrt(y);
      ^~

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C++
递交时间
2018-01-30 18:36:16
评测时间
2018-01-30 18:36:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes