Problem greeting
User cjcube
Submission Time 2023-11-09 14:11:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

greeting.cpp:1:2: error: invalid preprocessing directive #includes; did you mean #include?
1 | #includes <bits/stdc++.h>
| ^~~~~~~~
| include
greeting.cpp: In function ‘int main()’:
greeting.cpp:5:2: error: ‘str’ was not declared in this scope; did you mean ‘std’?
5 | str S;
| ^~~
| std
greeting.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> S;
| ^~~
greeting.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #includes <bits/stdc++.h>
greeting.cpp:6:9: error: ‘S’ was not declared in this scope
6 | cin >> S;
| ^
greeting.cpp:7:2: error: ‘cout’ was not declared in this scope
7 | cout >> S; cout >> " ni hao, xin nian kuai le!";
| ^~~~
greeting.cpp:7:2: note: ‘std::cout’ is defined in header ‘&