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
14427 Nguyễn Nhân Quỳnh Như Số nguyên không âm đẹp C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 89 2022-12-29 22:25:30

Lỗi biên dịch:

Main.c: In function ‘Sodep’:
Main.c:4:9: error: ‘x’ redeclared as different kind of symbol
     int x=0;
         ^
Main.c:3:22: note: previous definition of ‘x’ was here
 void Sodep(int t,int x){
                      ^
Main.c:5:11: error: ‘T’ undeclared (first use in this function)
     while(T!=null){
           ^
Main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in
Main.c:5:14: error: ‘null’ undeclared (first use in this function)
     while(T!=null){
              ^~~~
Main.c:6:14: error: expected expression before ‘)’ token
          if ()
              ^
Main.c:4:9: warning: unused variable ‘x’ [-Wunused-variable]
     int x=0;
         ^