Problem ippt
User ChessyBoy
Submission Time 2024-03-01 14:18:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ippt.cpp:3:6: error: ‘cin’ in namespace ‘std’ does not name a type
3 | std::cin >> a >> b >> c;
| ^~~
In file included from ippt.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
ippt.cpp:4:1: error: ‘sum’ does not name a type
4 | sum=a+b+c;
| ^~~
ippt.cpp:5:1: error: expected unqualified-id before ‘if’
5 | if(a=0||b=0||c=0||sum<=60){
| ^~
ippt.cpp:8:1: error: expected unqualified-id before ‘else’
8 | else if(sum>=85){
| ^~~~
ippt.cpp:11:1: error: expected unqualified-id before ‘else’
11 | else if(sum>=75){
| ^~~~
ippt.cpp:14:1: error: expected unqualified-id before ‘else’
14 | else if(sum>=61){
| ^~~~
ippt.cpp:17:1: error: expected unqualified-id before ‘return’
17 | return 0;
| ^~~~~~