Problem mathexam
User kahchun
Submission Time 2024-01-21 09:58:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mathexam.cpp: In function ‘int32_t main()’:
mathexam.cpp:49:15: error: ‘b’ was not declared in this scope
49 | res = (a + b) / 2;
| ^
mathexam.cpp:52:37: error: ambiguous overload for ‘operator<<’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘__float128’)
52 | cout << setprecision(1) << fixed << res << endl;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~
| | |
| | __float128
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/inc