| Problem | modulochain |
|---|---|
| User | Pineapple |
| Submission Time | 2026-07-10 17:36:03 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
modulochain.cpp: In function ‘int main()’:
modulochain.cpp:13:7: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
13 | a %= (1e9 + 7);
| ~~^~~~~~~~~~~~
modulochain.cpp:13:18: error: in evaluation of ‘operator%=(long long int, double)’
13 | a %= (1e9 + 7);
| ^
modulochain.cpp:15:27: error: invalid operands of types ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’} and ‘double’ to binary ‘operator%’
15 | b = (arr[0] * arr[-1])% (1e9 + 7);
| ~~~~~~~~~~~~~~~~~~^ ~~~~~~~~~
| | |
| | double
| __gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int}
modulochain.cpp:21:7: error: invalid