Problem | rightangtri |
---|---|
User | senkyte |
Submission Time | 2024-02-14 12:12:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rightangtri.cpp:1:2: error: invalid preprocessing directive #<
1 | #<include iostream>
| ^
rightangtri.cpp: In function ‘int main()’:
rightangtri.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin >> num;
| ^~~
rightangtri.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #<include iostream>
rightangtri.cpp:7:3: error: ‘cout’ was not declared in this scope
7 | cout << "*"*i << endl;
| ^~~~
rightangtri.cpp:7:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
rightangtri.cpp:7:14: error: invalid operands of types ‘const char [2]’ and ‘int’ to binary ‘operator*’
7 | cout << "*"*i << endl;
| ~~~^~
| | |
| | int
|