fork download
  1. #include <map>
  2. #include <string>
  3.  
  4. class Entity;
  5.  
  6. typedef std::map<int, std::string> Entity;
  7.  
  8. int main() {}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:6: error: conflicting declaration ‘typedef class std::map<int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<int>, std::allocator<std::pair<const int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > Entity’
prog.cpp:4: error: ‘struct Entity’ has a previous declaration as ‘struct Entity’
stdout
Standard output is empty