/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main(int, char**)':
foo.cc:8:7: error: expected ';' before ')' token
  for(k)
       ^
foo.cc:9:9: warning: statement has no effect [-Wunused-value]
   b=b*10;
         ^
foo.cc:10:2: error: expected primary-expression before 'while'
  while not(a=n%b)
  ^~~~~
foo.cc:10:2: error: expected ';' before 'while'
foo.cc:10:2: error: expected primary-expression before 'while'
foo.cc:10:2: error: expected ')' before 'while'
foo.cc:10:8: error: expected '(' before 'not' token
  while not(a=n%b)
        ^~~
foo.cc:11:3: error: expected ')' before 'a'
   a=a%b;
   ^
foo.cc:13:2: error: expected ';' before 'if'
  if(l<10){
  ^~
foo.cc:16:2: error: 'else' without a previous 'if'
  else
  ^~~~

自豪的采用jd5进行评测(github.com/masnn/jd5)

信息

递交者
类型
递交
题目
P1032 循环
语言
C++
递交时间
2020-02-23 12:58:57
评测时间
2020-02-23 12:58:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes