Problem greeting
User Schzeey
Submission Time 2022-12-27 10:50:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

greeting.cpp:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude <bits/stdc++.h>
| ^~~~~~~
| include
greeting.cpp: In function ‘int main()’:
greeting.cpp:5:2: error: ‘string’ was not declared in this scope
5 | string name;
| ^~~~~~
greeting.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
+++ |+#include <string>
1 | #inlcude <bits/stdc++.h>
greeting.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin << name;
| ^~~
greeting.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #inlcude <bits/stdc++.h>
greeting.cpp:6:9: error: ‘name’ was not declared in this scope
6 | cin << name;
| ^~~~
greeting.cpp:7:2: error: ‘cout