Borderou de evaluare (job #1461462)

Utilizator ctlin04UAIC.VlasCatalin ctlin04 Data 15 iulie 2015 19:17:49
Problema Cabana2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:1: error: ‘unordered_map’ does not name a type unordered_map<int,int> last; ^ user.cpp: In function ‘int maxim(daint*, unsigned int, unsigned int, int, int)’: user.cpp:27:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if (l>=x&&r<=y) return nod->val; ^ user.cpp:27:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if (l>=x&&r<=y) return nod->val; ^ user.cpp: In function ‘int main()’: user.cpp:82:16: error: ‘last’ was not declared in this scope if (last.find(a[i].y)!=last.end() && last.find(a[i+1].y)!=last.end()){ ^ user.cpp:89:6: error: ‘last’ was not declared in this scope last[a[i].y]=a[i].x; ^ user.cpp:94:8: error: ‘last’ was not declared in this scope last[a[r-1].y]=a[r-1].x; ^

Ceva nu functioneaza?