Borderou de evaluare (job #799640)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Gadfadăr (clasa 6-7) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 12 dec. 2024 20:10:24 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long unsigned int sum_of_divisors(long long unsigned int)':
main.cpp:49:22: error: expected unqualified-id before '__int128'
49 | unsigned __int128 ppow=1;
| ^~~~~~~~
main.cpp:50:43: error: 'ppow' was not declared in this scope; did you mean 'pow'?
50 | for (int i=0; i<power+1; i++) ppow = ppow * p;
| ^~~~
| pow
main.cpp:51:65: error: 'ppow' was not declared in this scope; did you mean 'pow'?
51 | unsigned long long numerator = (unsigned long long)(ppow - 1);
| ^~~~
| pow
main.cpp:40:32: warning: unused variable 'term' [-Wunused-variable]
40 | unsigned long long term = 1ULL;
| ^~~~
main.cpp:26:24: warning: unused variable 'original' [-Wunused-variable]
26 | unsigned long long original = n;
| ^~~~~~~~