记录详情

Compile Error

/in/foo.c:2:1: error: expected identifier or '(' before '}' token
 }
 ^
/in/foo.c: In function 'main':
/in/foo.c:6:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
     scanf("%d",&n);
     ^~~~~
/in/foo.c:6:5: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:6:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:10:16: warning: implicit declaration of function 'NeedMatch' [-Wimplicit-function-declaration]
             if(NeedMatch(i)+NeedMatch(j)+NeedMatch(i+j)==n-4)
                ^~~~~~~~~
/in/foo.c:13:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
     printf("%d",cnt);
     ^~~~~~
/in/foo.c:13:5: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'

信息

递交者
类型
递交
题目
P1170 火柴棒等式
语言
C
递交时间
2021-01-26 20:18:02
评测时间
2021-01-26 20:18:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes