Problem prime
User zsinfo2010
Submission Time 2026-01-30 14:01:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp:4:9: error: macro names must be identifiers
4 | #define <cmath>
| ^
prime.cpp: In function ‘int32_t main()’:
prime.cpp:11:27: error: invalid operands of types ‘long long int’ and ‘__gnu_cxx::__enable_if<true, double>::__type’ {aka ‘double’} to binary ‘operator<<’
11 | for (int i = 2; i << sqrt(n); i++) {
| ~ ^~ ~~~~~~~
| | |
| | __gnu_cxx::__enable_if<true, double>::__type {aka double}
| long long int