Problem | psle |
---|---|
User | Mineshafter61 |
Submission Time | 2024-01-16 13:05:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
psle.cpp: In function ‘int main()’:
psle.cpp:2:18: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
2 | int main(){int a;cin>>a;if(a>90)cout<<"A*";else if(a>74)cout<<"A";else if(a>59)cout<<"B";else if(a>49)cout<<"C";else if(a>34)cout<<"D";else if(a>20)cout<<"E";else cout<<"U";return 0;}
| ^~~
| std::cin
In file included from psle.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
psle.cpp:2:33: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
2 | int main(){int a;cin>>a;if(a>90)cout<<"A*";else if(a>74)cout<<"A";else if(a>59)cout<<"B";else if(a>49)cout<<"C";else if(a>34)cout<<"D";else if(a>20)cout<<"E";else cout<<"U";retur