Borderou de evaluare (job #648154)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Gadfadăr (clasa 6-7) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 apr. 2022 18:02:35 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:20: error: narrowing conversion of '1000000000001' from 'long long int' to 'unsigned int' [-Wnarrowing]
11 | int f[1000000000001];
| ^
main.cpp:11:7: error: size '1000000000001' of array 'f' exceeds maximum object size '2147483647'
11 | int f[1000000000001];
| ^~~~~~~~~~~~~
main.cpp: In function 'long long unsigned int sum_div(int)':
main.cpp:46:25: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int' [-Wsign-compare]
46 | if(n>1 && d * d > n)
| ~~~~~~^~~