Mã chấm: 269796


Main.cc: In function ‘int main()’:
Main.cc:14:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
    scanf("%d",&so2[i]);
               ~~~~~~~^
Main.cc:22:4: error: ‘itoa’ was not declared in this scope
    itoa(So2,str2,10);
    ^~~~
Main.cc:22:4: note: suggested alternative: ‘atol’
    itoa(So2,str2,10);
    ^~~~
    atol
Main.cc:23:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
    printf("so 2 truoc khi chuyen la %d\n",so2[j]);
                                           ~~~~~~^
Main.cc:24:45: warning: format ‘%c’ expects argument of type ‘int’, but argument 2 has type ‘char*’ [-Wformat=]
    printf("so 2 sau khi chuyen la %c\n",str2);
                                             ^
Main.cc:7:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  int soText; scanf("%d",&soText);
              ~~~~~^~~~~~~~~~~~~~
Main.cc:11:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %ld %ld",&so1,&min,&max);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Main.cc:14:9: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d",&so2[i]);
    ~~~~~^~~~~~~~~~~~~~