Problem | modulochain |
---|---|
User | Pranav |
Submission Time | 2024-03-15 07:31:52 |
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: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::vector<long long int>()’ to binary ‘operator*’
24 | {product = (product * A[i]) % MOD;}
| ~~~~~~~ ^ ~~~~
| | |
| | std::vector<long long int>()
| long long int
modulochain.cpp:27:14: error: invalid operands of types ‘long long int’ and ‘std::vector<long lon