0_0_22191855_3290.cpp: In function 'LL dp(int, char*)':
0_0_22191855_3290.cpp:64:21: error: incompatible types in assignment of 'int' to 'LL [1234] {aka long long int [1234]}'
g[0]=0;
^
0_0_22191855_3290.cpp:67:38: error: incompatible types in assignment of 'LL {aka long long int}' to 'LL [1234] {aka long long int [1234]}'
f[j] = g[i-1][j-1];
^
0_0_22191855_3290.cpp:69:38: error: incompatible types in assignment of 'LL {aka long long int}' to 'LL [1234] {aka long long int [1234]}'
f[j] = ((g[i-1][i-1] - g[i-1][j-1])%P+P)%P;
^
0_0_22191855_3290.cpp:71:45: error: invalid operands of types 'LL [1234] {aka long long int [1234]}' and 'LL [1234] {aka long long int [1234]}' to binary 'operator+'
g[j] = (g[j-1] + f[j])%P;
^
0_0_22191855_3290.cpp:75:58: error: invalid conversion from 'LL* {aka long long int*}' to 'LL {aka long long int}' [-fpermissive]
for(int i = 1; i <= m + 1; ++ i) inc( ans , f[m+1]);
^
0_0_22191855_3290.cpp:51:6: note: initializing argument 2 of 'void inc(LL&, LL)'
void inc( LL &a, LL b) {
^
0_0_22191855_3290.cpp: In function 'LL bf(int, int, char*)':
0_0_22191855_3290.cpp:84:38: error: incompatible types in assignment of 'int' to 'int [1234]'
for(int i = 0; i < n; ++ i) a=i;
^
0_0_22191855_3290.cpp:87:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
s = (a<a[i+1]?'U':'D');
^
0_0_22191855_3290.cpp:87:27: error: incompatible types in assignment of 'char' to 'char [1234]'
s = (a<a[i+1]?'U':'D');
^
0_0_22191855_3290.cpp: In function 'void bf_check()':
0_0_22191855_3290.cpp:113:62: error: incompatible types in assignment of 'char' to 'char [1234]'
for(int i = 0; i < m; ++ i) p=(s&(1<<i))?'U':'D';
^
|