fork download
  1. class C {};
  2.  
  3. int operator<<(C& , int) {
  4. return 0;
  5. }
  6.  
  7. int main () {
  8. C() << 7;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8: error: no match for ‘operator<<’ in ‘C() << 7’
prog.cpp:3: note: candidates are: int operator<<(C&, int)
stdout
Standard output is empty