Problem typo
User chinesewarcriminal
Submission Time 2023-03-09 19:15:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typo.cpp: In function ‘int main()’:
typo.cpp:3:5: error: ‘scanf’ was not declared in this scope
3 | scanf("%s", s);
| ^~~~~
typo.cpp:5:13: error: ‘strlen’ was not declared in this scope
5 | int n = strlen(s);
| ^~~~~~
typo.cpp:1:1: note: ‘strlen’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
+++ |+#include <cstring>
1 | int main() {
typo.cpp:13:9: error: ‘printf’ was not declared in this scope
13 | printf("Yes\n");
| ^~~~~~
typo.cpp:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
+++ |+#include <cstdio>
1 | int main() {
typo.cpp:14:5: error: expected ‘}’ at end of input
14 | }
| ^
typo.cpp:1:12: note: to match this ‘{’
1 | int main() {
| ^