/in/foo.cc: In function 'void operator<(const Herewego&, const Herewego&)':
/in/foo.cc:13:17: error: return-statement with a value, in function returning 'void' [-fpermissive]
return a.in<b.in;
^~
/in/foo.cc:15:21: error: return-statement with a value, in function returning 'void' [-fpermissive]
else return a.no<b.no;
^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:22:2: error: 'priority_queue' was not declared in this scope
priority_queue <Herewego,greater<Herewego> > que;
^~~~~~~~~~~~~~
/in/foo.cc:22:2: note: suggested alternative:
In file included from /usr/include/c++/6/queue:64:0,
from /in/foo.cc:3:
/usr/include/c++/6/bits/stl_queue.h:397:11: note: 'std::priority_queue'
class priority_queue
^~~~~~~~~~~~~~
/in/foo.cc:22:26: error: expected primary-expression before ',' token
priority_queue <Herewego,greater<Herewego> > que;
^
/in/foo.cc:22:27: error: 'greater' was not declared in this scope
priority_queue <Herewego,greater<Herewego> > que;
^~~~~~~
/in/foo.cc:22:27: note: suggested alternative:
In file included from /usr/include/c++/6/string:48:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/usr/include/c++/6/bits/stl_function.h:371:12: note: 'std::greater'
struct greater : public binary_function<_Tp, _Tp, bool>
^~~~~~~
/in/foo.cc:22:43: error: expected primary-expression before '>' token
priority_queue <Herewego,greater<Herewego> > que;
^
/in/foo.cc:22:45: error: expected primary-expression before '>' token
priority_queue <Herewego,greater<Herewego> > que;
^
/in/foo.cc:22:47: error: 'que' was not declared in this scope
priority_queue <Herewego,greater<Herewego> > que;
^~~
/in/foo.cc:24:2: error: 'cin' was not declared in this scope
cin>>n;
^~~
/in/foo.cc:24:2: note: suggested alternative:
In file included from /in/foo.cc:2:0:
/usr/include/c++/6/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^~~
/in/foo.cc:33:3: error: 'cout' was not declared in this scope
cout<<temp.in<<" "<<temp.no<<endl;
^~~~
/in/foo.cc:33:3: note: suggested alternative:
In file included from /in/foo.cc:2:0:
/usr/include/c++/6/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^~~~
/in/foo.cc:33:32: error: 'endl' was not declared in this scope
cout<<temp.in<<" "<<temp.no<<endl;
^~~~
/in/foo.cc:33:32: note: suggested alternative:
In file included from /usr/include/c++/6/iostream:39:0,
from /in/foo.cc:2:
/usr/include/c++/6/ostream:590:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~