Problem rightangtri
User garrett
Submission Time 2024-11-07 11:11:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rightangtri.cpp:2:5: error: ‘cout’ does not name a type
2 | cout << "Type a number";
| ^~~~
rightangtri.cpp:3:5: error: ‘cin’ does not name a type
3 | cin >> x;
| ^~~
rightangtri.cpp:4:5: error: expected unqualified-id before ‘if’
4 | if (x == 1) {
| ^~
rightangtri.cpp:6:7: error: expected unqualified-id before ‘else’
6 | } else if (x == 2) {
| ^~~~