/in/foo.cc: In function 'int main()':
/in/foo.cc:10:12: error: expected initializer before '.' token
   10 |     int cin.ignore();
      |            ^
/in/foo.cc:11:20: error: expected initializer before 'str'
   11 |         int string str;
      |                    ^~~
/in/foo.cc:12:22: error: 'str' was not declared in this scope; did you mean 'std'?
   12 |     int getline(cin, str);
      |                      ^~~
      |                      std
/in/foo.cc:12:25: error: expression list treated as compound expression in initializer [-fpermissive]
   12 |     int getline(cin, str);
      |                         ^
/in/foo.cc:18:14: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   18 |         if (c>='A'&c<='Z'){
      |             ~^~~~~
/in/foo.cc:12:9: warning: unused variable 'getline' [-Wunused-variable]
   12 |     int getline(cin, str);
      |         ^~~~~~~