Borderou de evaluare (job #2979148)
Utilizator | Data | 14 februarie 2023 19:52:30 | |
---|---|---|---|
Problema | Suma si numarul divizorilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:38:57: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, int, double, double>::__type' {aka 'double'} and 'int' to binary 'operator%'
38 | s=(s*((pow(prim[j],k+1)-1)/(prim[j]-1)))%9973;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
| | |
| | int
| __gnu_cxx::__promote_2<long long int, int, double, double>::__type {aka double}
main.cpp:28:21: warning: unused variable 'tear' [-Wunused-variable]
28 | int k=0,tear=prim[j];
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !