Problem modulochain
User nguyendinhanh1508
Submission Time 2023-12-26 15:08:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modulochain.cpp: In function ‘int32_t main()’:
modulochain.cpp:3:13: error: expected ‘,’ or ‘;’ before ‘long’
3 | #define int long long
| ^~~~
modulochain.cpp:12:3: note: in expansion of macro ‘int’
12 | int diffFirstAll=0
| ^~~
modulochain.cpp:20:5: error: ‘diffFirstAll’ was not declared in this scope
20 | diffFirstAll+=A[1]-A[i];
| ^~~~~~~~~~~~
modulochain.cpp:24:3: error: ‘diffFirstAll’ was not declared in this scope
24 | diffFirstAll % = MOD;
| ^~~~~~~~~~~~
modulochain.cpp:24:18: error: expected primary-expression before ‘=’ token
24 | diffFirstAll % = MOD;
| ^