Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. In file included from /usr/include/c++/4.9.1/backward/hash_map:60:0,
  2. from code.cpp:3:
  3. /usr/include/c++/4.9.1/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]
  4. #warning \
  5. ^
  6. code.cpp: In function ‘int main()’:
  7. code.cpp:17:3: error: ‘hash_map’ was not declared in this scope
  8. hash_map names;
  9. ^
  10. code.cpp:17:3: note: suggested alternative:
  11. In file included from code.cpp:3:0:
  12. /usr/include/c++/4.9.1/backward/hash_map:83:11: note: ‘__gnu_cxx::hash_map’
  13. class hash_map
  14. ^
  15. code.cpp:17:18: error: expected primary-expression before ‘,’ token
  16. hash_map names;
  17. ^
  18. code.cpp:17:20: error: expected primary-expression before ‘int’
  19. hash_map names;
  20. ^
  21. code.cpp:22:4: error: ‘names’ was not declared in this scope
  22. names[name] = 0;
  23. ^
  24. code.cpp:32:5: error: ‘names’ was not declared in this scope
  25. names[name] -= (amount - amount % divide);
  26. ^
  27. code.cpp:38:5: error: ‘names’ was not declared in this scope
  28. names[to] += amount;
  29. ^
  30. code.cpp:41:17: error: ‘names’ was not declared in this scope
  31. for (auto i = names.begin(); i != names.end(); i++)
  32. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement