记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:10:3: warning: implicit declaration of function 'func' [-Wimplicit-function-declaration]
   func(str[i]);
   ^~~~
/in/foo.c: At top level:
/in/foo.c:14:5: error: conflicting types for 'func'
 int func(char x)
     ^~~~
/in/foo.c:15:1: note: an argument type that has a default promotion can't match an empty parameter name list declaration
 {
 ^
/in/foo.c:10:3: note: previous implicit declaration of 'func' was here
   func(str[i]);
   ^~~~
/in/foo.c: In function 'func':
/in/foo.c:22:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
G7-4解密算法
比赛
2024程序设计与竞赛作业赛第二场(数组与世界)
语言
C
递交时间
2024-10-12 22:45:33
评测时间
2024-10-12 22:45:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes