Problem rightangtri
User playiprobro
Submission Time 2024-02-12 00:16:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rightangtri.cpp:1:3: error: invalid preprocessing directive #using
1 | # using <bits/stdc++.h>
| ^~~~~
rightangtri.cpp: In function ‘int main()’:
rightangtri.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> n;
| ^~~
rightangtri.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | # using <bits/stdc++.h>
rightangtri.cpp:9:3: error: ‘cout’ was not declared in this scope
9 | cout << "*"*i << endl;
| ^~~~
rightangtri.cpp:9:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
rightangtri.cpp:9:14: error: invalid operands of types ‘const char [2]’ and ‘int’ to binary ‘operator*’
9 | cout << "*"*i << endl;
| ~~~^~
| | |
| | int