记录详情

Compile Error

foo.c:4:1: warning: data definition has no type or storage class
    4 | PrimeCount(int p[]);
      | ^~~~~~~~~~
foo.c:4:1: warning: type defaults to 'int' in declaration of 'PrimeCount' [-Wimplicit-int]
foo.c:19:6: error: conflicting types for 'PrimeCount'
   19 | void PrimeCount(int p[]);
      |      ^~~~~~~~~~
foo.c:4:1: note: previous declaration of 'PrimeCount' was here
    4 | PrimeCount(int p[]);
      | ^~~~~~~~~~
foo.c:20:1: error: expected identifier or '(' before '{' token
   20 | {
      | ^
foo.c: In function 'main':
foo.c:9:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    9 |  scanf("%d %d",&n1,&n2);
      |  ^~~~~~~~~~~~~~~~~~~~~~
foo.c:12:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   12 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
foo.c:15:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   15 |   scanf("%d",&b[i]);
      |   ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
语言
C
递交时间
2021-12-23 13:54:26
评测时间
2021-12-23 13:54:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes