/in/foo.cc: In function 'int main()':
/in/foo.cc:34:9: error: 'cin' was not declared in this scope
34 | cin>>N>>M;
| ^~~
/in/foo.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <cstring>
+++ |+#include <iostream>
3 | using namespace std;
/in/foo.cc:40:9: error: 'cout' was not declared in this scope
40 | cout<<minfull(N,M);
| ^~~~
/in/foo.cc:40:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?