Problem modulochain
User Daniel0liong
Submission Time 2024-02-28 17:53:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modulochain.cpp: In function ‘int main()’:
modulochain.cpp:15:15: error: conflicting declaration ‘long long int d’
15 | long long d,e;
| ^
modulochain.cpp:8:24: note: previous declaration as ‘long long unsigned int d [(a + 18446744073709551615)]’
8 | unsigned long long d[a-1];
| ^
modulochain.cpp:16:7: error: incompatible types in assignment of ‘long long unsigned int’ to ‘long long unsigned int [(a + 18446744073709551615)]’
16 | d=b;
| ^
modulochain.cpp:18:53: error: invalid operands of types ‘long long unsigned int*’ and ‘long long unsigned int’ to binary ‘operator%’
18 | cout<<(b+sum)%c<<" "<<((d[a-2]*b)%c)<<" "<<(d-e)%c;
| ~~~~~^~
| | |
| | long long unsigned