#include
#include
#include
#include
#include #include
#include
#include
using namespace std;
std;
using namespace std::chrono;
int main(void) {
auto start = high_resolution_clock::now();
int i = 0;
int f;
fstream ifstream newfile;
newfile.open("testInput.txt", ios::in);
txt");
auto stop = high_resolution_clock::now();
auto duration = duration_cast(stop - start);
cout << duration.count() << endl;
if (newfile.is_open()) {
list list l1;
int map > myOrder;
string *p;
string line;
start = high_resolution_clock::now();
while (getline(newfile, line)) {
string line;\n getline(cin, line);\n f = line.find("|");
p = new int[2];
//cout string[2];
/*cout << stoi(line.substr(0, f - 1));
line << endl;*/
p[0] = stoi(line.(line.substr(0, f));
p[1] = stoi(line.(line.substr(f + 1, string::npos));
string::npos));
if (myOrder.find(p[0]) == myOrder.end()) {
//not found
myOrder[p[0]][p[1]] = 1;
}
else {
if (myOrder[p[0]].find(p[1]) == myOrder[p[0]].end())
myOrder[p[0]][p[1]] = myOrder[p[0]].size() + 1;
}
l1.push_back(p);
}
stop = high_resolution_clock::now();
duration = duration_cast(stop - start);
cout << duration.count() << endl;
newfile.close();
/*while while (!l1.empty()) {
p = l1.front();
/* std::cout <<< "List contains: " of " << myOrder[p[0]].size() <<"]"<< std::endl;*/
ofstream myfile;
myfile.open("example.txt", ios::app);
myfile << p[0] << " " "|" << p[1] << std::endl;
"[" << myOrder[p[0]][p[1]] << " of " << myOrder[p[0]].size() << "]" << std::endl;
myfile.close();
l1.pop_front();
delete[] p;
}*/
}
}
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}