Problem | modulochain |
---|---|
User | Pranav |
Submission Time | 2024-03-15 07:32:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
modulochain.cpp: In function ‘int main()’:
modulochain.cpp:19:5: error: request for member ‘push_back’ in ‘A’, which is of non-class type ‘std::vector<long long int>()’
19 | A.push_back(w);
| ^~~~~~~~~
modulochain.cpp:20:28: error: invalid operands of types ‘std::vector<long long int> (*)()’ and ‘long long int’ to binary ‘operator%’
20 | sum = (sum + A[i]) % MOD;
| ~~~~~~~~~~~~ ^ ~~~
| | |
| | long long int
| std::vector<long long int> (*)()
modulochain.cpp:22:17: error: invalid conversion from ‘std::vector<long long int> (*)()’ to ‘long long int’ [-fpermissive]
22 | {product = A[i];}
| ~~~^
| |
| std::vector<long long int> (*)()
modulochain.cpp:24:23: error: invalid operands of types ‘long long int’ and ‘std::