Problem | cellulardata |
---|---|
User | avner21 |
Submission Time | 2024-09-15 14:15:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cellulardata.cpp: In function ‘ll comb(int, int)’:
cellulardata.cpp:22:27: error: ‘pow_mod’ was not declared in this scope
22 | return factorial[n] * pow_mod(factorial[k] * factorial[n - k] % MOD, MOD - 2) % MOD;
| ^~~~~~~
cellulardata.cpp: In function ‘int main()’:
cellulardata.cpp:99:38: error: conversion from ‘vector<std::pair<int, int>>’ to non-scalar type ‘vector<int>’ requested
99 | vector<int> forbidden_diag = forbidden_positions;
| ^~~~~~~~~~~~~~~~~~~
cellulardata.cpp:117:47: error: request for member ‘first’ in ‘forbidden_diag.std::vector<int>::operator[](((std::vector<int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
117 | int r = forbidden_diag[i].first;
| ^~