Mã chấm Tài khoản Bài tập Ngôn ngữ lập trình Trạng thái Thời gian Bộ nhớ Kích thước Thời gian nộp
13599 Nguyễn Duy Niên Số nguyên không âm đẹp C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 398 2022-12-29 19:41:52

Lỗi biên dịch:

Main.c:2:1: error: unknown type name ‘bool’; did you mean ‘_Bool’?
 bool check(int so)
 ^~~~
 _Bool
Main.c: In function ‘check’:
Main.c:5:9: error: ‘true’ undeclared (first use in this function)
  return true;
         ^~~~
Main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
Main.c:6:14: error: ‘false’ undeclared (first use in this function); did you mean ‘fclose’?
  else return false;
              ^~~~~
              fclose
Main.c:7:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Main.c: In function ‘main’:
Main.c:11:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&t);
  ^~~~~~~~~~~~~~
Main.c:15:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d",&l,&r);
   ^~~~~~~~~~~~~~~~~~~