fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. std::cout << typeid(0.7).name() << '\n';
  7.  
  8. return 0;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:22: error: must #include <typeinfo> before using typeid
  std::cout << typeid(0.7).name() << '\n';
                      ^~~
stdout
Standard output is empty