Problem penguingathering
User NikhilK
Submission Time 2024-02-12 13:13:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/iostream:38,
from penguingathering.cpp:1:
/usr/include/math.h: In function ‘int main()’:
/usr/include/math.h:34:1: error: expected unqualified-id before string constant
34 | __BEGIN_DECLS
| ^~~~~~~~~~~~~
In file included from penguingathering.cpp:22:
/usr/include/c++/9/cmath:77:8: error: expected unqualified-id before string constant
77 | extern "C++"
| ^~~~~
penguingathering.cpp:23:21: error: ‘round’ was not declared in this scope
23 | long long avg = round(d_avg);
| ^~~~~