Main.cc:2:1: error: ‘usingnamespace’ does not name a type
usingnamespace std;
^~~~~~~~~~~~~~
Main.cc: In function ‘int main()’:
Main.cc:6:5: error: ‘cin’ was not declared in this scope
cin>>n;
^~~
Main.cc:6:5: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/7/iostream:60:18: note: ‘std::cin’
extern istream cin; /// Linked to standard input
^~~
Main.cc:7:23: error: expected primary-expression before ‘;’ token
for(int i=10;i<=n;;i++){
^
Main.cc:7:23: error: expected ‘)’ before ‘;’ token
Main.cc:7:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(int i=10;i<=n;;i++){
^~~
Main.cc:7:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
for(int i=10;i<=n;;i++){
^
Main.cc:7:24: error: ‘i’ was not declared in this scope
Main.cc:22:2: error: ‘cout’ was not declared in this scope
cout<