#include <iostream> using namespace std; int main() { cout << typeid(void).name() <<endl; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:5:21: error: must #include <typeinfo> before using typeid cout << typeid(void).name() <<endl; ^
Standard output is empty