Borderou de evaluare (job #1054331)

Utilizator costinbanuCostin Banu costinbanu Data 13 decembrie 2013 18:34:50
Problema Abc2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/local/include/c++/4.8.0/backward/hash_set:60:0, from user.cpp:3: /usr/local/include/c++/4.8.0/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp] #warning \ ^ user.cpp: In function ‘int main()’: user.cpp:16:41: error: template argument 2 is invalid hash_set< unsigned , hash<unsigned> > h; ^ user.cpp:16:44: error: invalid type in declaration before ‘;’ token hash_set< unsigned , hash<unsigned> > h; ^ user.cpp:22:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < word.size(); i++) ^ user.cpp:24:11: error: request for member ‘insert’ in ‘h’, which is of non-class type ‘int’ h.insert(val); ^ user.cpp:29:14: error: request for member ‘find’ in ‘h’, which is of non-class type ‘int’ nr += (h.find(val) != h.end()); ^ user.cpp:29:29: error: request for member ‘end’ in ‘h’, which is of non-class type ‘int’ nr += (h.find(val) != h.end()); ^ user.cpp:30:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = n; i < text.size(); i++) { ^ user.cpp:33:18: error: request for member ‘find’ in ‘h’, which is of non-class type ‘int’ nr += (h.find(val) != h.end()); ^ user.cpp:33:33: error: request for member ‘end’ in ‘h’, which is of non-class type ‘int’ nr += (h.find(val) != h.end()); ^

Ceva nu functioneaza?