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
14022 Nguyễn Minh Nhật Cặp số tương đồng C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 339 2022-12-29 20:32:48

Lỗi biên dịch:

Main.c:2:1: error: unknown type name ‘bool’; did you mean ‘_Bool’?
 bool timUoc(int n){
 ^~~~
 _Bool
Main.c: In function ‘timUoc’:
Main.c:5:4: error: ‘true’ undeclared (first use in this function)
    true;
    ^~~~
Main.c:5:4: note: each undeclared identifier is reported only once for each function it appears in
Main.c:8:9: error: ‘false’ undeclared (first use in this function); did you mean ‘fclose’?
  return false;
         ^~~~~
         fclose
Main.c: In function ‘main’:
Main.c:13:9: warning: zero-length gnu_printf format string [-Wformat-zero-length]
  printf("");
         ^~
Main.c: In function ‘timUoc’:
Main.c:9:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Main.c: In function ‘main’:
Main.c:14:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d", &L, &R);
  ^~~~~~~~~~~~~~~~~~~~~~