Problem rightangtri
User Reagan
Submission Time 2025-06-17 16:14:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rightangtri.cpp: In function ‘int main()’:
rightangtri.cpp:4:2: error: ‘import’ was not declared in this scope
4 | import math
| ^~~~~~
rightangtri.cpp:6:2: error: ‘length’ was not declared in this scope
6 | length = int(input("what is the length of the triangle"));
| ^~~~~~
rightangtri.cpp:6:15: error: ‘input’ was not declared in this scope; did you mean ‘int’?
6 | length = int(input("what is the length of the triangle"));
| ^~~~~
| int
rightangtri.cpp:7:2: error: ‘diagonal’ was not declared in this scope
7 | diagonal = math.sqrt(height ** 2 +length **2);
| ^~~~~~~~
rightangtri.cpp:7:13: error: ‘math’ was not declared in this scope
7 | diagonal = math.sqrt(height ** 2 +length **2);
| ^~~~
rightangtri.cpp:7:23: error: ‘height’ was not declared in this scope
7 | diagonal = math.sqrt(height ** 2 +length **2);
|