Problem | staircase |
---|---|
User | sporknives |
Submission Time | 2024-12-10 10:05:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
staircase.cpp: In function ‘int main()’:
staircase.cpp:5:5: error: ‘ios_base’ has not been declared
5 | ios_base::sync_with_stdio(0);
| ^~~~~~~~
staircase.cpp:6:5: error: ‘cin’ was not declared in this scope
6 | cin.tie(0);
| ^~~
staircase.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
staircase.cpp:18:5: error: ‘cout’ was not declared in this scope
18 | cout<<len;
| ^~~~
staircase.cpp:18:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?