Mã chấm: 132626


Main.cc: In function ‘int check(char*, long long int)’:
Main.cc:17:3: error: ‘dem’ was not declared in this scope
   dem=0;
   ^~~
Main.cc:17:3: note: suggested alternative: ‘dem3’
   dem=0;
   ^~~
   dem3
Main.cc:18:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(a[i]=a[i+3] && a[i+1]==a[i+4] && a[i+2]==a[i+5]){
      ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Main.cc: In function ‘int main()’:
Main.cc:41:8: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
  gets(a);
        ^
In file included from /usr/include/stdio.h:862:0,
                 from Main.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here
 gets (char *__str)
 ^~~~
Main.cc:41:6: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
  gets(a);
  ~~~~^~~