fork download
  1. total=0
  2. for i range(1,101);
  3. if i % 3 !=0 and i % 5 ! % >=6;
  4. total += i
  5. printf("合計",total)
Compilation error #stdin compilation error #stdout 0s 5308KB
stdin
Standard input is empty
compilation info
prog.c:1:1: warning: data definition has no type or storage class
 total=0
 ^~~~~
prog.c:1:1: warning: type defaults to ‘int’ in declaration of ‘total’ [-Wimplicit-int]
prog.c:2:1: error: expected ‘,’ or ‘;’ before ‘for’
 for i range(1,101);
 ^~~
prog.c:3:6: error: expected identifier or ‘(’ before ‘if’
      if i % 3 !=0 and i % 5 ! % >=6;
      ^~
prog.c:4:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘+=’ token
           total += i
                 ^~
stdout
Standard output is empty