Problem modulochain
User sussygoose
Submission Time 2025-11-08 14:49:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modulochain.cpp: In function ‘int main()’:
modulochain.cpp:19:14: error: invalid types ‘long long int[long long int]’ for array subscript
19 | cout << (a[z]*a[n-1])%big << " ";
| ^
modulochain.cpp:19:21: error: invalid types ‘long long int[long long int]’ for array subscript
19 | cout << (a[z]*a[n-1])%big << " ";
| ^
modulochain.cpp:20:15: error: invalid types ‘long long int[long long int]’ for array subscript
20 | int yay = a[z];
| ^
modulochain.cpp:22:17: error: invalid types ‘long long int[long long int]’ for array subscript
22 | yay = (yay-a[i])%big;
| ^