Run id: 101296
Main.cc: In function 'int main()':
Main.cc:8:9: error: 'cin' was not declared in this scope
cin>>h[i];
^
Main.cc:8:9: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
Main.cc:8:17: error: invalid types 'int[int]' for array subscript
cin>>h[i];
^
Main.cc:11:5: error: 'cin' was not declared in this scope
cin>>n;
^
Main.cc:11:5: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
Main.cc:15:16: error: invalid types 'int[int]' for array subscript
if (h[j]<=m) {
^
Main.cc:19:5: error: 'cout' was not declared in this scope
cout<