Problem yayornay
User Esan
Submission Time 2024-06-21 13:05:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

yayornay.cpp: In function ‘int main()’:
yayornay.cpp:4:4: error: expected ‘(’ before ‘s’
4 | if s=CPIC;
| ^
| (
yayornay.cpp:5:7: error: expected ‘;’ before string constant
5 | printf "Yay";
| ^~~~~~
| ;
yayornay.cpp:6:1: error: ‘else’ without a previous ‘if’
6 | else s=SGIO;
| ^~~~
yayornay.cpp:6:6: error: ‘s’ was not declared in this scope
6 | else s=SGIO;
| ^
yayornay.cpp:6:8: error: ‘SGIO’ was not declared in this scope; did you mean ‘SIGIO’?
6 | else s=SGIO;
| ^~~~
| SIGIO
yayornay.cpp:7:1: error: ‘print’ was not declared in this scope; did you mean ‘printf’?
7 | print "Nay";
| ^~~~~
| printf