Problem rightangtri
User skzy09
Submission Time 2026-06-22 16:47:44
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:6:20: error: found ‘:’ in nested-name-specifier, expected ‘::’
6 | int n; cin >> n:
| ^
| ::
rightangtri.cpp:6:19: error: ‘n’ is not a class, namespace, or enumeration
6 | int n; cin >> n:
| ^
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 | }