fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class T
  6. {
  7. friend void ko()
  8. {
  9. auto a=this;
  10. }
  11. };
  12.  
  13. int main() {
  14. return 0;
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'void ko()':
prog.cpp:9:10: error: invalid use of 'this' in non-member function
prog.cpp:9:10: error: unable to deduce 'auto' from '<expression error>'
stdout
Standard output is empty