Borderou de evaluare (job #807495)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Punga (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 feb. 2025 19:52:16 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool exists_solution(ull, ull, ull&, ull&)':
main.cpp:22:5: error: expected primary-expression before '__int128'
22 | __int128 D = (__int128)s * s - 4 * (__int128)K;
| ^~~~~~~~
main.cpp:23:9: error: 'D' was not declared in this scope
23 | if (D < 0)
| ^
main.cpp:27:42: error: 'D' was not declared in this scope
27 | ull sqrt_D = (ull)sqrtl((long double)D);
| ^
main.cpp:30:13: error: expected primary-expression before '__int128'
30 | while ((__int128)(sqrt_D + 1) * (sqrt_D + 1) <= D)
| ^~~~~~~~
main.cpp:30:13: error: expected ')' before '__int128'
30 | while ((__int128)(sqrt_D + 1) * (sqrt_D + 1) <= D)
| ~^~~~~~~~
| )
main.cpp:31:17: error: expected ')' before ';' token
31 | ++sqrt_D;
| ^
| )
main.cpp:30:11: note: to match this '('
30 | while ((__int128)(sqrt_D + 1) * (sqrt_D + 1) <= D)
| ^