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
14444 Phạm Đỗ Quang Long Cặp số tương đồng C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 564 2022-12-29 22:34:56

Lỗi biên dịch:

Main.c: In function ‘main’:
Main.c:8:11: warning: missing terminating " character
    printf("Nhap vao b=
           ^
Main.c:8:11: error: missing terminating " character
    printf("Nhap vao b=
           ^~~~~~~~~~~~
Main.c:9:1: warning: missing terminating " character
 ");
 ^
Main.c:9:1: error: missing terminating " character
 ");
 ^~~
Main.c:10:18: error: expected ‘)’ before ‘;’ token
    scanf("%d",&b);
                  ^
Main.c:10:4: warning: passing argument 1 of ‘printf’ makes pointer from integer without a cast [-Wint-conversion]
    scanf("%d",&b);
    ^~~~~
In file included from /usr/include/stdio.h:862:0,
                 from Main.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:102:1: note: expected ‘const char * restrict’ but argument is of type ‘int’
 printf (const char *__restrict __fmt, ...)
 ^~~~~~
Main.c:33:1: warning: format not a string literal and no format arguments [-Wformat-security]
 }
 ^
Main.c:33:1: error: expected ‘;’ before ‘}’ token
Main.c:5:13: warning: unused variable ‘count’ [-Wunused-variable]
    int a,b, count=0;
             ^~~~~
Main.c:7:4: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d",&a);
    ^~~~~~~~~~~~~~