fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << typeid(void).name() <<endl;
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:5:21: error: must #include <typeinfo> before using typeid
  cout << typeid(void).name() <<endl;
                     ^
stdout
Standard output is empty