gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:88:17: error: 'pii' was not declared in this scope
priority_queue<pii> present;
^~~
gondola.cpp:88:20: error: template argument 1 is invalid
priority_queue<pii> present;
^
gondola.cpp:88:20: error: template argument 2 is invalid
gondola.cpp:88:20: error: template argument 3 is invalid
gondola.cpp:89:6: error: expected ';' before 'cur'
pii cur;
^~~
gondola.cpp:123:13: error: request for member 'push' in 'present', which is of non-class type 'int'
present.push(mp(gondolaSeq[A],A));
^~~~
gondola.cpp:123:18: error: 'mp' was not declared in this scope
present.push(mp(gondolaSeq[A],A));
^~
gondola.cpp:123:18: note: suggested alternative: 'mx'
present.push(mp(gondolaSeq[A],A));
^~
mx
gondola.cpp:132:19: error: request for member 'empty' in 'present', which is of non-class type 'int'
while(!present.empty())
^~~~~
gondola.cpp:134:5: error: 'cur' was not declared in this scope
cur=present.top();
^~~
gondola.cpp:134:17: error: request for member 'top' in 'present', which is of non-class type 'int'
cur=present.top();
^~~
gondola.cpp:137:13: error: request for member 'pop' in 'present', which is of non-class type 'int'
present.pop();
^~~
gondola.cpp:139:13: error: request for member 'push' in 'present', which is of non-class type 'int'
present.push(mp(sec,cur.second));
^~~~
gondola.cpp:139:18: error: 'mp' was not declared in this scope
present.push(mp(sec,cur.second));
^~
gondola.cpp:139:18: note: suggested alternative: 'mx'
present.push(mp(sec,cur.second));
^~
mx
gondola.cpp:142:9: error: 'class std::vector<int>' has no member named 'pb'
vec.pb(sec);
^~
gondola.cpp:144:19: error: request for member 'empty' in 'present', which is of non-class type 'int'
while(!present.empty())
^~~~~
gondola.cpp:146:5: error: 'cur' was not declared in this scope
cur=present.top();
^~~
gondola.cpp:146:17: error: request for member 'top' in 'present', which is of non-class type 'int'
cur=present.top();
^~~
gondola.cpp:147:13: error: request for member 'pop' in 'present', which is of non-class type 'int'
present.pop();
^~~
gondola.cpp:148:5: error: 'fin' was not declared in this scope
fin[cur.second]=cur.first;
^~~
gondola.cpp:148:5: note: suggested alternative: 'sin'
fin[cur.second]=cur.first;
^~~
sin
gondola.cpp:152:8: error: 'fin' was not declared in this scope
if(fin[A]!=arr[A])
^~~
gondola.cpp:152:8: note: suggested alternative: 'sin'
if(fin[A]!=arr[A])
^~~
sin
gondola.cpp:153:14: error: request for member 'push' in 'present', which is of non-class type 'int'
present.push(mp(fin[A],arr[A]));
^~~~
gondola.cpp:153:19: error: 'mp' was not declared in this scope
present.push(mp(fin[A],arr[A]));
^~
gondola.cpp:153:19: note: suggested alternative: 'mx'
present.push(mp(fin[A],arr[A]));
^~
mx
gondola.cpp:155:19: error: request for member 'empty' in 'present', which is of non-class type 'int'
while(!present.empty())
^~~~~
gondola.cpp:157:5: error: 'cur' was not declared in this scope
cur=present.top();
^~~
gondola.cpp:157:17: error: request for member 'top' in 'present', which is of non-class type 'int'
cur=present.top();
^~~
gondola.cpp:158:13: error: request for member 'pop' in 'present', which is of non-class type 'int'
present.pop();
^~~
gondola.cpp:159:9: error: 'class std::vector<int>' has no member named 'pb'
vec.pb(cur.second);
^~
gondola.cpp:164:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int A=0;A<vec.size();A++)
~^~~~~~~~~~~
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:186:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int A=0;A<vec.size()-1;A++)
~^~~~~~~~~~~~~