Problem yayornay
User Aryankcode2024
Submission Time 2024-06-21 12:44:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

yayornay.cpp: In function ‘int main()’:
yayornay.cpp:2:7: error: ‘string’ is not a member of ‘std’
2 | std::string suggestion;
| ^~~~~~
yayornay.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
+++ |+#include <string>
1 | int main(){
yayornay.cpp:3:7: error: ‘cin’ is not a member of ‘std’
3 | std::cin >> suggestion;
| ^~~
yayornay.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main(){
yayornay.cpp:3:14: error: ‘suggestion’ was not declared in this scope
3 | std::cin >> suggestion;
| ^~~~~~~~~~
yayornay.cpp:6:9: error: ‘cout’ is not a member of ‘std’
6 | std::cout << "Yay";
| ^~~~
yayornay.cpp:6:9: note: ‘std::cout’ is defined in header ‘<iostream