记录详情

Compile Error

foo.c:3:1: error: unknown type name 'bool'; did you mean '_Bool'?
 bool isprime(int i)
 ^~~~
 _Bool
foo.c: In function 'isprime':
foo.c:6:10: error: 'false' undeclared (first use in this function); did you mean 'fabsl'?
   return false;
          ^~~~~
          fabsl
foo.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
foo.c:11:9: error: 'true' undeclared (first use in this function); did you mean 'trunc'?
  return true;
         ^~~~
         trunc
foo.c: In function 'main':
foo.c:31:26: error: 'true' undeclared (first use in this function); did you mean 'trunc'?
   if(t%i==0&&isprime(i)==true)
                          ^~~~
                          trunc
foo.c: In function 'isprime':
foo.c:12:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
foo.c: In function 'main':
foo.c:25:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  int n,m;scanf("%d%d",&n,&m);
          ^~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1303 G. Mathforces
比赛
南京师范大学2021年11月程序设计竞赛
语言
C
递交时间
2021-11-21 15:15:56
评测时间
2021-11-21 15:15:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes