Problem | diamond |
---|---|
User | rogueee |
Submission Time | 2024-10-23 22:22:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
diamond.cpp: In function ‘int main()’:
diamond.cpp:3:7: error: ‘cin’ is not a member of ‘std’
3 | std::cin >> N;
| ^~~
diamond.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main() {
diamond.cpp:5:8: error: ‘abort’ is not a member of ‘std’
5 | std::abort();
| ^~~~~
diamond.cpp:8:9: error: ‘cout’ is not a member of ‘std’
8 | std::cout << " ";
| ^~~~
diamond.cpp:8:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
diamond.cpp:11:9: error: ‘cout’ is not a member of ‘std’
11 | std::cout << "* ";
| ^~~~
diamond.cpp:11:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
diamond.cpp:14:8: error: ‘cout’ is not a member of