prog.cpp: In function ‘int main()’:
prog.cpp:2: error: ‘string’ was not declared in this scope
prog.cpp:2: error: expected `;' before ‘str’
prog.cpp:5: error: ‘cout’ was not declared in this scope
prog.cpp:6: error: ‘cin’ was not declared in this scope
prog.cpp:6: error: ‘str’ was not declared in this scope
prog.cpp:6: error: ‘getline’ was not declared in this scope
prog.cpp:9: error: ‘stringstream’ was not declared in this scope
prog.cpp:9: error: expected `;' before ‘ss’
prog.cpp:17: error: ‘ss’ was not declared in this scope
prog.cpp:17: warning: name lookup of ‘i’ changed
prog.cpp:3: warning: matches this ‘i’ under ISO standard rules
prog.cpp:10: warning: matches this ‘i’ under old rules