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
272159 Trần Hoàng Gia Bảo CHẤM ĐIỂM TRẮC NGHIỆM C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 173 2023-11-21 10:26:42

Lỗi biên dịch:

Main.cc: In function ‘int main()’:
Main.cc:8:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]
     scanf("%d",n)
                 ^
Main.cc:9:1: error: expected ‘;’ before ‘char’
 char c ();
 ^~~~
Main.cc:12:5: error: a function-definition is not allowed here before ‘return’
     return 0;
     ^~~~~~
Main.cc:10:5: warning: unused variable ‘t’ [-Wunused-variable]
 int t;
     ^
Main.cc:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",n)
     ~~~~~^~~~~~~~