Borderou de evaluare (job #1350107)

Utilizator soriynSorin Rita soriyn Data 20 februarie 2015 17:47:44
Problema Brazi Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/4.8/backward/hash_map:60:0, from user.cpp:4: /usr/include/c++/4.8/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:13:1: error: ‘hash_map’ does not name a type hash_map<string,int> H; ^ user.cpp: In function ‘void bfs(int)’: user.cpp:41:2: error: ‘hash_map’ was not declared in this scope hash_map<string,int>::iterator it = H.find(s); ^ user.cpp:41:2: note: suggested alternative: In file included from user.cpp:4:0: /usr/include/c++/4.8/backward/hash_map:83:11: note: ‘__gnu_cxx::hash_map’ class hash_map ^ user.cpp:41:17: error: expected primary-expression before ‘,’ token hash_map<string,int>::iterator it = H.find(s); ^ user.cpp:41:18: error: expected primary-expression before ‘int’ hash_map<string,int>::iterator it = H.find(s); ^ user.cpp:41:18: error: expected ‘;’ before ‘int’ user.cpp:42:6: error: ‘it’ was not declared in this scope if (it == H.end()) ^ user.cpp:42:12: error: ‘H’ was not declared in this scope if (it == H.end()) ^ user.cpp: In function ‘int main()’: user.cpp:65:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("brazi.in", "r", stdin); ^ user.cpp:66:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("brazi.out", "w", stdout); ^ user.cpp:67:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:71:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:75:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &x, &y, &z); ^

Ceva nu functioneaza?