0_0_30270925_14376.cpp: In function 'int main()':
0_0_30270925_14376.cpp:254:147: error: 'n' was not declared in this scope
if (a[d][i] <= x) for ( int j = 0 ; j <= 9 ; j++ ) if ( a[d][i] + j * 10000000000ll < d * 10000000000ll && a[d][i]+j*10000000000ll <= n ) ans = max(ans, a[d][i]+j*10000000000ll);
^
|