记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:8:16: error: lvalue required as increment operand
  for(i=1;i<=n;1++)
                ^~
/in/foo.c:15:9: error: stray '\' in program
  printf(\n);
         ^
/in/foo.c:15:10: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
  printf(\n);
          ^
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:364:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~

信息

递交者
类型
递交
题目
A2-2 循环结构入门:斐波拉契数列
比赛
中北 计算机2021级专业修读指导(1)
语言
C
递交时间
2021-11-30 19:08:52
评测时间
2021-11-30 19:08:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes