Problem modulochain
User ZachTAD
Submission Time 2024-02-15 07:27:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modulochain.cpp: In function ‘int main()’:
modulochain.cpp:10:9: error: conflicting declaration ‘auto n’
10 | array[n];
| ^
modulochain.cpp:7:7: note: previous declaration as ‘int n’
7 | int n;
| ^
modulochain.cpp:10:11: error: expected initializer before ‘;’ token
10 | array[n];
| ^
modulochain.cpp:18:17: error: missing template arguments before ‘[’ token
18 | cin >> array[i];
| ^
modulochain.cpp:21:16: error: missing template arguments before ‘[’ token
21 | a = a+array[j]%m;
| ^