记录详情

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);
  ^~~~~
/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:11:7: error: 'i' undeclared (first use in this function)
   for(i=0;i<n;i++)
       ^
/in/foo.c:11:7: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:20:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   else 
   ^~~~
/in/foo.c:26:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
    s++;
    ^
/in/foo.c:34:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   printf("%d",max);
   ^~~~~~
/in/foo.c:34:3: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:34:3: note: include '<stdio.h>' or provide a declaration of 'printf'

信息

递交者
类型
递交
题目
P1190 斯芬克斯
比赛
2020年互联网创新创业科技节程序设计大赛
语言
C
递交时间
2020-12-09 15:18:00
评测时间
2020-12-09 15:18:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes