0_0_30687514_3196.cpp:6:8: error: redefinition of 'struct stat'
struct stat{
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:380:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_30687514_3196.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: error: previous definition of 'struct stat'
struct stat {
^
0_0_30687514_3196.cpp:8:21: error: invalid type in declaration before '=' token
} mdp[20][200][200] = {0};
^
0_0_30687514_3196.cpp: In function 'int main()':
0_0_30687514_3196.cpp:21:16: error: request for member 'cnt' in 'mdp[0][j][0]', which is of non-class type 'int'
mdp[0][j][0].cnt = 1;
^
0_0_30687514_3196.cpp:22:16: error: request for member 'sum' in 'mdp[0][j][0]', which is of non-class type 'int'
mdp[0][j][0].sum = 0;
^
0_0_30687514_3196.cpp:23:16: error: request for member 'fin' in 'mdp[0][j][0]', which is of non-class type 'int'
mdp[0][j][0].fin = j;
^
0_0_30687514_3196.cpp:25:17: error: request for member 'fin' in 'mdp[0][j][k]', which is of non-class type 'int'
mdp[0][j][k].fin = k;
^
0_0_30687514_3196.cpp:35:19: error: request for member 'fin' in 'mdp[i][j][k]', which is of non-class type 'int'
mdp[i][j][k].fin = k;
^
0_0_30687514_3196.cpp:38:20: error: request for member 'cnt' in 'mdp[i][j][k]', which is of non-class type 'int'
mdp[i][j][k].cnt+=mdp[i-1][j+l][cc].cnt;
^
0_0_30687514_3196.cpp:38:43: error: request for member 'cnt' in 'mdp[(i + -1)][(j + l)][cc]', which is of non-class type 'int'
mdp[i][j][k].cnt+=mdp[i-1][j+l][cc].cnt;
^
0_0_30687514_3196.cpp:39:20: error: request for member 'sum' in 'mdp[i][j][k]', which is of non-class type 'int'
mdp[i][j][k].sum+=mdp[i-1][j+l][cc].sum+(mdp[i-1][j+l][cc].cnt%mod)*(p10[i-1]*l%mod);
^
0_0_30687514_3196.cpp:39:43: error: request for member 'sum' in 'mdp[(i + -1)][(j + l)][cc]', which is of non-class type 'int'
mdp[i][j][k].sum+=mdp[i-1][j+l][cc].sum+(mdp[i-1][j+l][cc].cnt%mod)*(p10[i-1]*l%mod);
^
0_0_30687514_3196.cpp:39:66: error: request for member 'cnt' in 'mdp[(i + -1)][(j + l)][cc]', which is of non-class type 'int'
mdp[i][j][k].sum+=mdp[i-1][j+l][cc].sum+(mdp[i-1][j+l][cc].cnt%mod)*(p10[i-1]*l%mod);
^
0_0_30687514_3196.cpp:40:20: error: request for member 'sum' in 'mdp[i][j][k]', which is of non-class type 'int'
mdp[i][j][k].sum%=mod;
^
0_0_30687514_3196.cpp:41:30: error: request for member 'fin' in 'mdp[(i + -1)][(j + l)][cc]', which is of non-class type 'int'
cc = mdp[i-1][j+l][cc].fin-p10[i-1];
^
0_0_30687514_3196.cpp:43:19: error: request for member 'fin' in 'mdp[i][j][k]', which is of non-class type 'int'
mdp[i][j][k].fin = cc+p10[i];
^
0_0_30687514_3196.cpp:59:26: error: request for member 'cnt' in 'mdp[i][(((ll)j) + pre)][cc]', which is of non-class type 'int'
if(mdp[i][pre+j][cc].cnt<=n){
^
0_0_30687514_3196.cpp:61:27: error: request for member 'cnt' in 'mdp[i][(((ll)j) + pre)][cc]', which is of non-class type 'int'
n-=mdp[i][pre+j][cc].cnt;
^
0_0_30687514_3196.cpp:62:50: error: request for member 'cnt' in 'mdp[i][(((ll)j) + pre)][cc]', which is of non-class type 'int'
ans+=((cv+p10[i]*j)%mod)*(mdp[i][pre+j][cc].cnt%mod)%mod;
^
0_0_30687514_3196.cpp:63:29: error: request for member 'sum' in 'mdp[i][(((ll)j) + pre)][cc]', which is of non-class type 'int'
ans+=mdp[i][pre+j][cc].sum;
^
0_0_30687514_3196.cpp:65:29: error: request for member 'fin' in 'mdp[i][(((ll)j) + pre)][cc]', which is of non-class type 'int'
cc = mdp[i][pre+j][cc].fin-p10[i];
^
|