记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:4:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
  scanf("%d\n",&n);
  ^~~~~
/in/foo.c:4:2: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:4:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:8:7: error: 'i' undeclared (first use in this function)
  for (i=0;i<n;i++)
       ^
/in/foo.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:12:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  printf("%d",count);
  ^~~~~~
/in/foo.c:12:2: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:12:2: note: include '<stdio.h>' or provide a declaration of 'printf'

信息

递交者
类型
递交
题目
3 有两个孩子的家庭个数
比赛
小兰赛 2018/12/2
语言
C
递交时间
2018-12-02 10:31:50
评测时间
2018-12-02 10:31:50
评测机
分数
0
总耗时
11ms
峰值内存
2.547 MiB