Problem rightangtri
User yuwen1st
Submission Time 2026-02-28 09:30:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rightangtri.cpp: In function ‘int main()’:
rightangtri.cpp:4:7: error: found ‘:’ in nested-name-specifier, expected ‘::’
4 | int n:
| ^
| ::
rightangtri.cpp:4:6: error: ‘n’ has not been declared
4 | int n:
| ^
rightangtri.cpp:5:5: error: qualified-id in declaration before ‘>>’ token
5 | cin>>n;
| ^~
rightangtri.cpp:6:17: error: ‘n’ was not declared in this scope
6 | for (int i=0;i<n;i++){
| ^
rightangtri.cpp:8:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘const char [2]’)
8 | cout>>"*";}
| ~~~~^~~~~
| | |
| | const char [2]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from rightangtri.cpp:1:
/usr/in