Problem | minstack |
---|---|
User | thatlycheeoolongdrink |
Submission Time | 2024-03-27 10:24:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minstack.cpp: In function ‘int main()’:
minstack.cpp:49:5: error: ‘cout’ was not declared in this scope
49 | cout << ms.getMin() << endl; // Output: 9
| ^~~~
minstack.cpp:3:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
2 | #include <climits> // For INT_MAX
+++ |+#include <iostream>
3 |
minstack.cpp:49:28: error: ‘endl’ was not declared in this scope
49 | cout << ms.getMin() << endl; // Output: 9
| ^~~~
minstack.cpp:3:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
2 | #include <climits> // For INT_MAX
+++ |+#include <ostream>
3 |