Mã chấm: 272101


Main.cc: In function ‘int main()’:
Main.cc:10:21: warning: format ‘%d’ expects a matching ‘int*’ argument [-Wformat=]
     scanf("%d %d %d");
                     ^
Main.cc:10:21: warning: format ‘%d’ expects a matching ‘int*’ argument [-Wformat=]
Main.cc:10:21: warning: format ‘%d’ expects a matching ‘int*’ argument [-Wformat=]
Main.cc:12:21: error: ‘a’ was not declared in this scope
         scanf("%d",&a[i]);
                     ^
Main.cc:16:12: error: ‘a’ was not declared in this scope
         if(a[i]==0){
            ^
Main.cc:21:12: error: ‘a’ was not declared in this scope
         if(a[i]==0){
            ^
Main.cc:7:9: warning: unused variable ‘c’ [-Wunused-variable]
   int n,c,b;
         ^
Main.cc:7:11: warning: unused variable ‘b’ [-Wunused-variable]
   int n,c,b;
           ^
Main.cc:10:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d %d %d");
     ~~~~~^~~~~~~~~~~~