0_0_29907535_5761.cpp:12:11: error: stray ',' at end of member declaration
ull si,;
^
0_0_29907535_5761.cpp:18:1: error: 'll' does not name a type
ll num[100010];
^
0_0_29907535_5761.cpp:21:1: error: 'll' does not name a type
ll getmul(ll a,ll b)
^
0_0_29907535_5761.cpp: In function 'void pushup(int)':
0_0_29907535_5761.cpp:35:15: error: 'struct node' has no member named 'val'
tree[cur].val=(tree[2*cur].val+tree[2*cur+1].val)%M;
^
0_0_29907535_5761.cpp:35:32: error: 'struct node' has no member named 'val'
tree[cur].val=(tree[2*cur].val+tree[2*cur+1].val)%M;
^
0_0_29907535_5761.cpp:35:50: error: 'struct node' has no member named 'val'
tree[cur].val=(tree[2*cur].val+tree[2*cur+1].val)%M;
^
0_0_29907535_5761.cpp:35:55: error: 'M' was not declared in this scope
tree[cur].val=(tree[2*cur].val+tree[2*cur+1].val)%M;
^
0_0_29907535_5761.cpp: In function 'void build(int, int, int)':
0_0_29907535_5761.cpp:45:15: error: 'struct node' has no member named 'val'
tree[cur].val=0;
^
0_0_29907535_5761.cpp:50:33: error: 'struct node' has no member named 'val'
scanf("%lld",&tree[cur].val);
^
0_0_29907535_5761.cpp: At global scope:
0_0_29907535_5761.cpp:60:1: error: 'll' does not name a type
ll query(int pl,int pr,int cur)
^
0_0_29907535_5761.cpp: In function 'void update(int, int, int)':
0_0_29907535_5761.cpp:78:19: error: 'struct node' has no member named 'val'
tree[cur].val=getmul(tree[cur].val,tree[cur].val);
^
0_0_29907535_5761.cpp:78:40: error: 'struct node' has no member named 'val'
tree[cur].val=getmul(tree[cur].val,tree[cur].val);
^
0_0_29907535_5761.cpp:78:54: error: 'struct node' has no member named 'val'
tree[cur].val=getmul(tree[cur].val,tree[cur].val);
^
0_0_29907535_5761.cpp:78:57: error: 'getmul' was not declared in this scope
tree[cur].val=getmul(tree[cur].val,tree[cur].val);
^
0_0_29907535_5761.cpp: In function 'int main()':
0_0_29907535_5761.cpp:91:5: error: 'll' was not declared in this scope
ll ans;
^
0_0_29907535_5761.cpp:98:9: error: 'ans' was not declared in this scope
ans=0;
^
0_0_29907535_5761.cpp:103:33: error: 'query' was not declared in this scope
ans=(ans+query(l,r,1))%M;
^
0_0_29907535_5761.cpp:103:36: error: 'M' was not declared in this scope
ans=(ans+query(l,r,1))%M;
^
|