/in/foo.cc: In function 'int main()':
/in/foo.cc:5:16: error: expected initializer before 'input'
5 | int string input;
| ^~~~~
/in/foo.cc:6:22: error: 'input' was not declared in this scope; did you mean 'int'?
6 | int getline(cin, input);
| ^~~~~
| int
/in/foo.cc:6:27: error: expression list treated as compound expression in initializer [-fpermissive]
6 | int getline(cin, input);
| ^
/in/foo.cc:10:12: error: 'iss' was not declared in this scope
10 | while (iss >> word) {
| ^~~
/in/foo.cc:10:19: error: 'word' was not declared in this scope
10 | while (iss >> word) {
| ^~~~
/in/foo.cc:11:9: error: 'words' was not declared in this scope
11 | words.push_back(word);
| ^~~~~
/in/foo.cc:13:19: error: expected initializer before '<' token
13 | int vector<string> words;
| ^
/in/foo.cc:14:23: error: expected initializer before 'iss'
14 | int istringstream iss(input);
| ^~~
/in/foo.cc:15:16: error: expected initializer before 'word'
15 | int string word;
| ^~~~
/in/foo.cc:16:18: error: 'words' was not declared in this scope
16 | for (int i = words.size() - 1; i >= 0; --i) {
| ^~~~~
/in/foo.cc:23:17: error: expected ';' before 'return'
23 | cout << endl
| ^
| ;
24 | return 0;
| ~~~~~~
/in/foo.cc:6:9: warning: unused variable 'getline' [-Wunused-variable]
6 | int getline(cin, input);
| ^~~~~~~