Problem cellulardata
User avner21
Submission Time 2024-09-15 14:16:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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:107:38: error: conversion from ‘vector<std::pair<int, int>>’ to non-scalar type ‘vector<int>’ requested
107 | vector<int> forbidden_diag = forbidden_positions;
| ^~~~~~~~~~~~~~~~~~~
cellulardata.cpp:125: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’}
125 | int r = forbidden_diag[i].first;
| ^