Run id: 62224

Main.cc: In function 'int main()':
Main.cc:8:5: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(a);
     ^
In file included from /usr/include/c++/5/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:46,
                 from Main.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
Main.cc:8:5: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(a);
     ^
In file included from /usr/include/c++/5/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:46,
                 from Main.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
Main.cc:8:11: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(a);
           ^
In file included from /usr/include/c++/5/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:46,
                 from Main.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
Main.cc:9:9: error: 'i' was not declared in this scope
     for(i=0;a[i]!='\0';i++){
         ^
Main.cc:8:12: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
     gets(a);
            ^