Borderou de evaluare (job #2893021)
Utilizator | Data | 24 aprilie 2022 16:30:54 | |
---|---|---|---|
Problema | Galagie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:27:46: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
27 | ans = (ans + elem[i] * i - dist_sum) % MOD;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
| |
| long long int
main.cpp:28:41: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
28 | dist_sum = (dist_sum + elem[i]) % MOD;
| ~~~~~~~~~~~~~~~~~~~~ ^
| |
| long long int
main.cpp:31:20: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
31 | g << (ans * 2) % MOD;
| ~~~~~~~~~ ^
| |
| long long int
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !