foo.cc:3:1: error: ‘string’ does not name a type; did you mean ‘stdin’?
3 | string s;
| ^~~~~~
| stdin
foo.cc: In function ‘int main()’:
foo.cc:6:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin>>s;
| ^~~
| std::cin
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:146:
/nix/gcc-14.3.0/include/c++/14.3.0/iostream:62:18: note: ‘std::cin’ declared here
foo.cc:6:10: error: ‘s’ was not declared in this scope
6 | cin>>s;
| ^