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

Compile Error

rightangtri.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main{
| ^~~~
rightangtri.cpp:5:2: error: expected primary-expression before ‘int’
5 | int number;
| ^~~
rightangtri.cpp:5:2: error: expected ‘}’ before ‘int’
rightangtri.cpp:4:9: note: to match this ‘{’
4 | int main{
| ^
rightangtri.cpp:6:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | cin >> number;
| ^~~
| sin
rightangtri.cpp:7:2: error: expected unqualified-id before ‘for’
7 | for(int i = 1; i < n + 1; i++){
| ^~~
rightangtri.cpp:7:17: error: ‘i’ does not name a type
7 | for(int i = 1; i < n + 1; i++){
| ^
rightangtri.cpp:7:28: error: ‘i’ does not name a type
7 | for(int i = 1; i < n + 1; i++){
| ^
rightangtri.cpp:10:1: error: expected declaration before ‘}’ token