Problem ippt
User ChessyBoy
Submission Time 2024-03-01 14:19:31
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:7:2: error: expected unqualified-id before ‘else’
7 | }else if(sum>=85){
| ^~~~
ippt.cpp:9:2: error: expected unqualified-id before ‘else’
9 | }else if(sum>=75){
| ^~~~
ippt.cpp:11:2: error: expected unqualified-id before ‘else’
11 | }else if(sum>=61){
| ^~~~
ippt.cpp:14:1: error: expected unqualified-id before ‘return’
14 | return 0;
| ^~~~~~