fork download
  1. struct mah_struct {
  2. std::wstring member;
  3. std::size_t hash_cache;
  4. void lookup(hash_map<std::wstring, int>& x) {
  5. x.find(member, [&](std::string&) { return hash_cache; });
  6. }
  7. };
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:5: error: 'wstring' in namespace 'std' does not name a type
prog.cpp:3:5: error: 'size_t' in namespace 'std' does not name a type
prog.cpp:4:17: error: 'hash_map' has not been declared
prog.cpp:4:25: error: expected ',' or '...' before '<' token
prog.cpp: In member function 'void mah_struct::lookup(int)':
prog.cpp:5:9: error: 'x' was not declared in this scope
prog.cpp:5:16: error: 'member' was not declared in this scope
prog.cpp:5:33: error: 'std::string' has not been declared
prog.cpp: In lambda function:
prog.cpp:5:51: error: 'hash_cache' was not declared in this scope
prog.cpp:5:63: error: return-statement with a value, in function returning 'void'
stdout
Standard output is empty