Problem | lightningrod |
---|---|
User | SuspiciousAmogus |
Submission Time | 2024-05-24 19:40:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:22:2: error: ‘ios_base’ has not been declared
22 | ios_base::sync_with_stdio(false); cin.tie(0);
| ^~~~~~~~
lightningrod.cpp:22:36: error: ‘cin’ was not declared in this scope
22 | ios_base::sync_with_stdio(false); cin.tie(0);
| ^~~
lightningrod.cpp:4:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
3 | #include <stack>
+++ |+#include <iostream>
4 | using namespace std;
lightningrod.cpp:37:2: error: ‘cout’ was not declared in this scope
37 | cout << s.size();
| ^~~~
lightningrod.cpp:37:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?