Main.cc: In function 'int main()':
Main.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'fgets'?
6 | gets(a);
| ^~~~
| fgets
Main.cc:7:9: error: conflicting declaration 'int a'
7 | int a,b=0;
| ^
Main.cc:5:10: note: previous declaration as 'char a [10000]'
5 | char a[10000];
| ^
Main.cc:8:15: error: incompatible types in assignment of 'size_t' {aka 'long unsigned int'} to 'char [10000]'
8 | a=strlen(a);
| ^
Main.cc:9:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | for(int i=0;i<a;i++)
| ^
Main.cc:11:41: error: lvalue required as left operand of assignment
11 | if(a[i]='Q'&&a[i+1]='A'&&a[i+2]='Q') b++;
| ^~~