Problem rightangtri
User iso6ky
Submission Time 2024-05-15 11:11:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rightangtri.cpp: In function ‘int main()’:
rightangtri.cpp:8:6: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
8 | do {cin >> height;} while (height < 1);
| ^~~
| std::cin
In file included from rightangtri.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
rightangtri.cpp: In function ‘void triangle(int, int)’:
rightangtri.cpp:15:31: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
15 | for (int i = 0; i < h; i++) {cout << "*";)
| ^~~~
| std::cout
In file included from rightangtri.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
rightangtri.cpp: