Problem goodprogrammer
User NoynYT
Submission Time 2024-04-17 10:48:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

goodprogrammer.cpp: In function ‘int main()’:
goodprogrammer.cpp:6:2: error: ‘string’ was not declared in this scope
6 | string cool; cin>>cool;
| ^~~~~~
goodprogrammer.cpp:2:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
1 | #include <cstdio>
+++ |+#include <string>
2 |
goodprogrammer.cpp:6:15: error: ‘cin’ was not declared in this scope
6 | string cool; cin>>cool;
| ^~~
goodprogrammer.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <cstdio>
+++ |+#include <iostream>
2 |
goodprogrammer.cpp:6:20: error: ‘cool’ was not declared in this scope; did you mean ‘bool’?
6 | string cool; cin>>cool;
| ^~~~
| bool
goodprogrammer.cpp:7:2: error: ‘cout’