0_0_32791757_10950.cpp:12:1: error: expected ',' or ';' before 'int'
int data[maxn];
^
0_0_32791757_10950.cpp:13:12: error: array bound is not an integer constant before ']' token
int fi[maxn];
^
0_0_32791757_10950.cpp: In function 'void addv(int, int)':
0_0_32791757_10950.cpp:21:9: error: 'data' was not declared in this scope
data[x]+=value;
^
0_0_32791757_10950.cpp: In function 'int sum(int)':
0_0_32791757_10950.cpp:29:14: error: 'data' was not declared in this scope
ans+=data[x];
^
0_0_32791757_10950.cpp: In function 'int main()':
0_0_32791757_10950.cpp:39:16: error: 'fi' was not declared in this scope
memset(fi,0,sizeof(fi));
^
0_0_32791757_10950.cpp:40:16: error: 'data' was not declared in this scope
memset(data,0,sizeof(data));
^
|