Main.cc: In function ‘int main()’:
Main.cc:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> n >> m;
| ^~~
Main.cc:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
Main.cc:25:30: error: ‘min’ was not declared in this scope; did you mean ‘main’?
25 | for (int len = 1; len <= min(n, m); len++) {
| ^~~
| main
Main.cc:29:5: error: ‘cout’ was not declared in this scope
29 | cout << ans_s << " " << ans_l << endl;
| ^~~~
Main.cc:29:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
Main.cc:29:38: error: ‘endl’ was not declared in this scope
29 | cout << ans_s << " " << ans_l << endl;
| ^~~~
Main.cc:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 | using namespace std;