fork download
  1. #include <iostream>
  2.  
  3. #include <list>
  4. #include <utility>
  5.  
  6.  
  7. typedef std::list<std::pair<int, MyList::const_iterator>> MyList;
  8.  
  9. int main() {
  10.  
  11. }
Compilation error #stdin compilation error #stdout 0s 3428KB
stdin
Standard input is empty
compilation info
prog.cpp:7:34: error: ‘MyList’ was not declared in this scope
 typedef std::list<std::pair<int, MyList::const_iterator>> MyList;
                                  ^
prog.cpp:7:56: error: template argument 2 is invalid
 typedef std::list<std::pair<int, MyList::const_iterator>> MyList;
                                                        ^
prog.cpp:7:59: error: template argument 1 is invalid
 typedef std::list<std::pair<int, MyList::const_iterator>> MyList;
                                                           ^
prog.cpp:7:59: error: template argument 2 is invalid
prog.cpp:7:14: warning: ‘typedef’ was ignored in this declaration [enabled by default]
 typedef std::list<std::pair<int, MyList::const_iterator>> MyList;
              ^
stdout
Standard output is empty