Language
Compiler
Options
$
give me the first side of the triangle:
give me the second side of the triangle:
give me the third side of the triangle:
triangle is true:
triangle is false:
Exit Code:
0
Author
anonymous
about 5 years ago
Author
anonymous
about 5 years ago
$
prog.cc: In function 'int main()':
prog.cc:17:19: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
17 | if (i == true);
| ^
prog.cc:17:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
17 | if (i == true);
| ^~
prog.cc:18:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
18 | {
| ^
prog.cc:21:21: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
21 | if (i == false);
| ^
give me the first side of the triangle:
give me the second side of the triangle:
give me the third side of the triangle:
triangle is true:
triangle is false: