Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #include <string>
  2. #include <iostream>
  3. #include <stdio.h>
  4. #include<unordered_map>
  5. using namespace std;
  6.  
  7. typedef unsigned long ulong;
  8. typedef unsigned int uint;
  9. typedef unsigned short uint16;
  10. typedef unsigned char uchar;
  11.  
  12. typedef std::unordered_map<long, std::unordered_map<long, *FILE> > TYPE1;
  13.  
  14. int main(int argc, char *argv[]) {
  15. TYPE1 x;
  16. x[1][2] = fopen(argv[1], "rb");
  17.  
  18. return 0;
  19. }
  20.  
  21. $ g++ -std=c++11 te2a.cc
  22. te2a.cc:15:64: error: template argument 2 is invalid
  23. te2a.cc:15:64: error: template argument 5 is invalid
  24. te2a.cc:15:66: error: template argument 2 is invalid
  25. te2a.cc:15:66: error: template argument 5 is invalid
  26. te2a.cc:15:73: error: invalid type in declaration before ‘;’ token
  27. te2a.cc: In function ‘int main(int, char**)’:
  28. te2a.cc:19:5: error: invalid types ‘TYPE1 {aka int}[int]’ for array subscript
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement