记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:16: error: 'n' undeclared (first use in this function)
  int a[100000];n;i,j;
                ^
/in/foo.c:5:16: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:5:18: error: 'i' undeclared (first use in this function)
  int a[100000];n;i,j;
                  ^
/in/foo.c:5:20: error: 'j' undeclared (first use in this function)
  int a[100000];n;i,j;
                    ^
/in/foo.c:5:19: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  int a[100000];n;i,j;
                   ^
/in/foo.c:11:6: error: expected expression before ')' token
   if()
      ^
/in/foo.c:16:16: error: expected expression before ')' token
  printf("%d\n",);
                ^
/in/foo.c:5:6: warning: variable 'a' set but not used [-Wunused-but-set-variable]
  int a[100000];n;i,j;
      ^

信息

递交者
类型
递交
题目
2-1 单个数的3N+1猜想
比赛
中北 计算机2021级专业修读指导(2)
语言
C
递交时间
2021-12-07 23:21:00
评测时间
2021-12-07 23:21:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes