Main.cc: In function ‘int main()’:
Main.cc:12:9: 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:17:12: error: expected ‘;’ before ‘:’ token
count++:
^
Main.cc:20:12: error: expected ‘;’ before ‘:’ token
count++:
^
Main.cc:10:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
Main.cc:12:7: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a);
~~~~^~~