prog.cpp:4:9: error: ‘string’ was not declared in this scope
int hsh(string s, int id)
^~~~~~
prog.cpp:4:9: note: suggested alternative: ‘struct’
int hsh(string s, int id)
^~~~~~
struct
prog.cpp:4:19: error: expected primary-expression before ‘int’
int hsh(string s, int id)
^~~
prog.cpp:4:25: error: expression list treated as compound expression in initializer [-fpermissive]
int hsh(string s, int id)
^