Problem yayornay
User Avinash
Submission Time 2026-01-30 12:40:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

yayornay.cpp: In function ‘int main()’:
yayornay.cpp:2:2: error: ‘string’ was not declared in this scope
2 | string s;
| ^~~~~~
yayornay.cpp:3:2: error: ‘cin’ was not declared in this scope
3 | cin s;
| ^~~
yayornay.cpp:5:6: error: ‘s’ was not declared in this scope
5 | if (s == "CPIC") {
| ^
yayornay.cpp:6:3: error: ‘cout’ was not declared in this scope
6 | cout << "Yay";
| ^~~~
yayornay.cpp:8:3: error: ‘cout’ was not declared in this scope
8 | cout << "Nay";
| ^~~~
yayornay.cpp:10:9: error: expected ‘;’ before ‘}’ token
10 | return 0
| ^
| ;
11 | }
| ~