Main.cc:1:1: error: ‘include’ does not name a type; did you mean ‘__has_include’?
include
^~~~~~~
__has_include
Main.cc: In function ‘int main()’:
Main.cc:4:8: error: ‘cin’ was not declared in this scope
int n; cin>>n; for(int i=1;i<=n;i++) {
^~~
Main.cc:4:8: note: suggested alternative: ‘main’
int n; cin>>n; for(int i=1;i<=n;i++) {
^~~
main
Main.cc:26:1: error: ‘printf’ was not declared in this scope
printf("%d %d\n",AnsL,AnsR);
^~~~~~
Main.cc:26:1: note: suggested alternative: ‘int’
printf("%d %d\n",AnsL,AnsR);
^~~~~~
int