Main.cc: In function ‘int Count(int, char)’:
Main.cc:9:5: error: ‘string’ was not declared in this scope
9 | string s = to_string(n);
| ^~~~~~
Main.cc:5:1: note: ‘std::string’ is defined in header ‘’; did you forget to ‘#include ’?
4 | #include
+++ |+#include
5 | using namespace std;
Main.cc:10:18: error: ‘s’ was not declared in this scope
10 | return count(s.begin(), s.end(), k);
| ^
Main.cc:10:12: error: ‘count’ was not declared in this scope; did you mean ‘Count’?
10 | return count(s.begin(), s.end(), k);
| ^~~~~
| Count
Main.cc: In function ‘int main()’:
Main.cc:16:5: error: ‘cin’ was not declared in this scope
16 | cin >> t;
| ^~~
Main.cc:5:1: note: ‘std::cin’ is defined in header ‘’; did you forget to ‘#include ’?
4 | #include
+++ |+#include
5 | using namespace std;
Main.cc:27:9: error: ‘cout’ was not declared in this scope
27 | cout << res << '\n';
| ^~~~
Main.cc:27:9: note: ‘std::cout’ is defined in header ‘’; did you forget to ‘#include ’?