/in/foo.cc: In function 'int main()':
/in/foo.cc:8:3: error: 'cin' was not declared in this scope
8 | cin>>a;
| ^~~
/in/foo.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <stdio.h>
+++ |+#include <iostream>
2 | using namespace std;
/in/foo.cc:9:7: error: 'i' was not declared in this scope
9 | for(i=0;n>0;n++){
| ^
/in/foo.cc:9:11: error: 'n' was not declared in this scope
9 | for(i=0;n>0;n++){
| ^
/in/foo.cc:15:17: error: 'cout' was not declared in this scope
15 | cout<<a[j]}
| ^~~~
/in/foo.cc:15:17: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
/in/foo.cc:5:7: warning: unused variable 'x' [-Wunused-variable]
5 | int x;
| ^