prog.cpp: In function ‘int main()’:
prog.cpp:4:30: error: ‘stdin’ was not declared in this scope
freopen("acronym.in", "r", stdin);
^~~~~
prog.cpp:4:30: note: ‘stdin’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
prog.cpp:1:1:
+#include <cstdio>
//time
prog.cpp:4:30:
freopen("acronym.in", "r", stdin);
^~~~~
prog.cpp:4:3: error: ‘freopen’ was not declared in this scope
freopen("acronym.in", "r", stdin);
^~~~~~~
prog.cpp:5:2: error: ‘Keyboard_Crackers’ was not declared in this scope
Keyboard_Crackers();
^~~~~~~~~~~~~~~~~
prog.cpp:6:2: error: ‘string’ was not declared in this scope
string s;
^~~~~~
prog.cpp:6:2: note: suggested alternative: ‘struct’
string s;
^~~~~~
struct
prog.cpp:7:2: error: ‘cin’ was not declared in this scope
cin >> s;
^~~
prog.cpp:7:2: note: suggested alternative: ‘main’
cin >> s;
^~~
main
prog.cpp:7:9: error: ‘s’ was not declared in this scope
cin >> s;
^
prog.cpp:9:2: error: ‘vector’ was not declared in this scope
vector<string>v;
^~~~~~
prog.cpp:9:16: error: ‘v’ was not declared in this scope
vector<string>v;
^
prog.cpp:10:2: error: ‘map’ was not declared in this scope
map<char, priority_queue<string, vector<string>, greater<string> > >mp;
^~~
prog.cpp:10:2: note: suggested alternative: ‘main’
map<char, priority_queue<string, vector<string>, greater<string> > >mp;
^~~
main
prog.cpp:10:6: error: expected primary-expression before ‘char’
map<char, priority_queue<string, vector<string>, greater<string> > >mp;
^~~~
prog.cpp:11:6: error: expected primary-expression before ‘char’
map<char, priority_queue<string, vector<string>, greater<string> > >::iterator it;
^~~~
prog.cpp:14:9: error: expected ‘;’ before ‘t’
string t;
^~
;
prog.cpp:15:10: error: ‘t’ was not declared in this scope
cin >> t;
^
prog.cpp:16:2: error: ‘mp’ was not declared in this scope
mp[t[0]].push(t);
^~
prog.cpp:21:7: error: ‘mp’ was not declared in this scope
if (mp.find(s[i]) != mp.end()) {
^~
prog.cpp:22:4: error: ‘it’ was not declared in this scope
it = mp.find(s[i]);
^~
prog.cpp:22:4: note: suggested alternative: ‘i’
it = mp.find(s[i]);
^~
i
prog.cpp:24:4: error: ‘priority_queue’ was not declared in this scope
priority_queue<string, vector<string>, greater<string> > temp;
^~~~~~~~~~~~~~
prog.cpp:24:41: error: expected primary-expression before ‘,’ token
priority_queue<string, vector<string>, greater<string> > temp;
^
prog.cpp:24:43: error: ‘greater’ was not declared in this scope
priority_queue<string, vector<string>, greater<string> > temp;
^~~~~~~
prog.cpp:24:59: error: expected primary-expression before ‘>’ token
priority_queue<string, vector<string>, greater<string> > temp;
^
prog.cpp:24:61: error: ‘temp’ was not declared in this scope
priority_queue<string, vector<string>, greater<string> > temp;
^~~~
prog.cpp:40:11: error: expected ‘;’ before ‘x’
string x = temp.top();
^~
;
prog.cpp:41:17: error: ‘x’ was not declared in this scope
v.push_back(x);
^
prog.cpp:52:3: error: ‘cout’ was not declared in this scope
cout << "Impossible" << endl;
^~~~
prog.cpp:52:27: error: ‘endl’ was not declared in this scope
cout << "Impossible" << endl;
^~~~
prog.cpp:52:27: note: suggested alternative: ‘enum’
cout << "Impossible" << endl;
^~~~
enum
prog.cpp:56:2: error: ‘cout’ was not declared in this scope
cout << v[i] << " ";
^~~~
prog.cpp:58:3: error: ‘cout’ was not declared in this scope
cout << endl;
^~~~
prog.cpp:58:11: error: ‘endl’ was not declared in this scope
cout << endl;
^~~~
prog.cpp:58:11: note: suggested alternative: ‘enum’
cout << endl;
^~~~
enum