Problem rightangtri
User hackerman123
Submission Time 2023-07-12 22:25:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rightangtri.cpp:4:1: error: ‘::main’ must return ‘int’
4 | void main(){
| ^~~~
rightangtri.cpp: In function ‘int main()’:
rightangtri.cpp:7:21: error: ‘n’ was not declared in this scope
7 | for(int i = 1; i < n + 1; i++){
| ^
rightangtri.cpp:8:25: error: expected ‘;’ before ‘}’ token
8 | cout << '*' * i + '\n'
| ^
| ;
9 | }
| ~