fork(2) download
  1. #include <map>
  2.  
  3. typedef int int32;
  4.  
  5. struct foo
  6. {
  7. std::map<int, int32> bar = std::map<int, int32>{};
  8. };
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:7:44: error: expected ';' at end of member declaration
   std::map<int, int32> bar = std::map<int, int32>{};
                                            ^
prog.cpp:7:44: error: declaration of 'std::map<int, int> foo::int32' [-fpermissive]
prog.cpp:3:13: error: changes meaning of 'int32' from 'typedef int int32' [-fpermissive]
 typedef int int32;
             ^
prog.cpp:7:49: error: expected unqualified-id before '>' token
   std::map<int, int32> bar = std::map<int, int32>{};
                                                 ^
prog.cpp:7:39: error: wrong number of template arguments (1, should be at least 2)
   std::map<int, int32> bar = std::map<int, int32>{};
                                       ^
In file included from /usr/include/c++/5/map:61:0,
                 from prog.cpp:1:
/usr/include/c++/5/bits/stl_map.h:96:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
     class map
           ^
stdout
Standard output is empty