Problem rightangtri
User skzy09
Submission Time 2026-06-22 16:49:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
rightangtri.cpp: In function ‘int main()’:
rightangtri.cpp:8:21: error: found ‘:’ in nested-name-specifier, expected ‘::’
8 | for(int i=0; i<n: i++){
| ^
| ::
rightangtri.cpp:8:20: error: ‘n’ is not a class, namespace, or enumeration
8 | for(int i=0; i<n: i++){
| ^
rightangtri.cpp:12:1: error: expected primary-expression before ‘}’ token
12 | }
| ^
rightangtri.cpp:11:6: error: expected ‘;’ before ‘}’ token
11 | }
| ^
| ;
12 | }
| ~
rightangtri.cpp:12:1: error: expected primary-expression before ‘}’ token
12 | }
| ^
rightangtri.cpp:11:6: error: expected ‘)’ before ‘}’ token
11 | }
| ^
| )
12 | }
| ~
rightangtri.cpp:8:8: note: to match this ‘(’
8 | for(int