Problem | modulochain |
---|---|
User | Ttrio |
Submission Time | 2024-03-01 12:16:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
modulochain.cpp: In function ‘int main()’:
modulochain.cpp:12:7: error: ‘i’ was not declared in this scope
12 | for (i = 0;i<n;++i){
| ^
modulochain.cpp:14:26: error: expected initializer before ‘+=’ token
14 | unsigned long long sum += a[i];
| ^~
modulochain.cpp:17:21: error: redeclaration of ‘long long unsigned int first’
17 | unsigned long long first = sum%(10^9+7);
| ^~~~~
modulochain.cpp:10:23: note: ‘long long unsigned int first’ previously declared here
10 | unsigned long long n,first,second,third; cin>>n;
| ^~~~~
modulochain.cpp:17:29: error: ‘sum’ was not declared in this scope
17 | unsigned long long first = sum%(10^9+7);
| ^~~
modulochain.cpp:18:21: error: redeclaration of ‘long long unsigned int second’
18 | unsigned long long second = (a[0]*a[n])%(10^9+7);