Main.cc: In function ‘int main()’:
Main.cc:7:11: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s);
^
In file included from /usr/include/stdio.h:862:0,
from /usr/include/c++/7/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:46,
from Main.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here
gets (char *__str)
^~~~
Main.cc:7:11: error: cannot convert ‘std::__cxx11::string {aka std::__cxx11::basic_string}’ to ‘char*’ for argument ‘1’ to ‘char* gets(char*)’
gets(s);
^
Main.cc:8:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i