0_0_39222602_31842.cpp: In function 'int main()':
0_0_39222602_31842.cpp:8:5: error: 'cin' was not declared in this scope
8 | cin >> n;
| ^~~
0_0_39222602_31842.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <vector>
+++ |+#include <iostream>
2 | using namespace std;
0_0_39222602_31842.cpp:20:9: error: 'cout' was not declared in this scope
20 | cout << "Case " << i + 1 << ": "<<endl;
| ^~~~
0_0_39222602_31842.cpp:20:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39222602_31842.cpp:20:43: error: 'endl' was not declared in this scope
20 | cout << "Case " << i + 1 << ": "<<endl;
| ^~~~
0_0_39222602_31842.cpp:2:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
1 | #include <vector>
+++ |+#include <ostream>
2 | using namespace std;
0_0_39222602_31842.cpp: In function 'void sum(int, int)':
0_0_39222602_31842.cpp:29:5: error: 'cout' was not declared in this scope
29 | cout << a << " + " << b << " = " << (a + b) << endl;
| ^~~~
0_0_39222602_31842.cpp:29:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39222602_31842.cpp:29:52: error: 'endl' was not declared in this scope
29 | cout << a << " + " << b << " = " << (a + b) << endl;
| ^~~~
0_0_39222602_31842.cpp:29:52: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
|