Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <iostream>
- #include <stdio.h>
- #include<unordered_map>
- using namespace std;
- typedef unsigned long ulong;
- typedef unsigned int uint;
- typedef unsigned short uint16;
- typedef unsigned char uchar;
- typedef std::unordered_map<long, std::unordered_map<long, *FILE> > TYPE1;
- int main(int argc, char *argv[]) {
- TYPE1 x;
- x[1][2] = fopen(argv[1], "rb");
- return 0;
- }
- $ g++ -std=c++11 te2a.cc
- te2a.cc:15:64: error: template argument 2 is invalid
- te2a.cc:15:64: error: template argument 5 is invalid
- te2a.cc:15:66: error: template argument 2 is invalid
- te2a.cc:15:66: error: template argument 5 is invalid
- te2a.cc:15:73: error: invalid type in declaration before ‘;’ token
- te2a.cc: In function ‘int main(int, char**)’:
- te2a.cc:19:5: error: invalid types ‘TYPE1 {aka int}[int]’ for array subscript
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement