Main.cc:1:1: error: ‘include’ does not name a type; did you mean ‘__has_include’?
include<iostream>
^~~~~~~
__has_include
Main.cc: In function ‘int main()’:
Main.cc:11:1: error: ‘cin’ was not declared in this scope
cin>>n;
^~~
Main.cc:11:1: note: suggested alternative: ‘main’
cin>>n;
^~~
main
Main.cc:13:1: error: ‘t’ was not declared in this scope
t=0;
^
Main.cc:19:6: error: ‘x’ was not declared in this scope
cin>>x;
^
Main.cc:25:1: error: ‘cout’ was not declared in this scope
cout<<fixed<<setprecision(2)<<t<<endl;
^~~~
Main.cc:25:7: error: ‘fixed’ was not declared in this scope
cout<<fixed<<setprecision(2)<<t<<endl;
^~~~~
Main.cc:25:7: note: suggested alternative: ‘signed’
cout<<fixed<<setprecision(2)<<t<<endl;
^~~~~
signed
Main.cc:25:14: error: ‘setprecision’ was not declared in this scope
cout<<fixed<<setprecision(2)<<t<<endl;
^~~~~~~~~~~~
Main.cc:25:34: error: ‘endl’ was not declared in this scope
cout<<fixed<<setprecision(2)<<t<<endl;
^~~~
Main.cc:25:34: note: suggested alternative: ‘enum’
cout<<fixed<<setprecision(2)<<t<<endl;
^~~~
enum