foo.cc:16:7: error: expected nested-name-specifier before ‘namspace’
16 | using namspace std;
| ^~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:20:9: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
20 | cin>>score;
| ^~~
| std::cin
iostream:62:18: note: ‘std::cin’ declared here
foo.cc:31:9: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
31 | cout<<level<<endl;
| ^~~~
| std::cout
iostream:63:18: note: ‘std::cout’ declared here
foo.cc:31:22: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
31 | cout<<level<<endl;
| ^~~~
| std::endl
In file included from iostream:41:
/nix/gcc-13.2.0/include/c++/13.2.0/ostream:735:5: note: ‘std::endl’ declared here
735 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~