| Problem | givingtree |
|---|---|
| User | Killervinsen |
| Submission Time | 2026-06-23 10:40:37 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
givingtree.cpp: In function ‘int main()’:
givingtree.cpp:7:15: error: incomplete type ‘std::ios_base’ used in nested name specifier
7 | ios_base::sync_with_stdio(false);
| ^~~~~~~~~~~~~~~
givingtree.cpp:8:5: error: ‘cin’ was not declared in this scope
8 | cin.tie(NULL);
| ^~~
givingtree.cpp:3:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
2 | #include <algorithm>
+++ |+#include <iostream>
3 |
givingtree.cpp:16:9: error: ‘cout’ was not declared in this scope
16 | cout << string((max_w - a) / 2, ' ') << string(a, 'T') << "\n";
| ^~~~
givingtree.cpp:16:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
givingtree.cpp:20:9: error: ‘cout’ was not declared in this scope
20 | cout << string((max_w - b)