F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_36833413_20465.c:4:27: error: expected expression before '/' token
 long long mod = 998244353//1e9+7
                           ^
0_0_36833413_20465.c:2:21: error: expected expression before '/' token
 #define maxn 100007//1e5+7 
                     ^
0_0_36833413_20465.c:41:15: note: in expansion of macro 'maxn'
 long long arr[maxn];
               ^
0_0_36833413_20465.c:2:21: error: expected expression before '/' token
 #define maxn 100007//1e5+7 
                     ^
0_0_36833413_20465.c:42:14: note: in expansion of macro 'maxn'
 long long m2[maxn];
              ^
0_0_36833413_20465.c: In function 'init':
0_0_36833413_20465.c:62:2: error: 'm2' undeclared (first use in this function)
  m2[0] = 1;
  ^
0_0_36833413_20465.c:62:2: note: each undeclared identifier is reported only once for each function it appears in
0_0_36833413_20465.c:2:21: error: expected expression before '/' token
 #define maxn 100007//1e5+7 
                     ^
0_0_36833413_20465.c:63:18: note: in expansion of macro 'maxn'
  for (i = 1; i < maxn; i++) {
                  ^
0_0_36833413_20465.c: At top level:
0_0_36833413_20465.c:2:21: error: expected expression before '/' token
 #define maxn 100007//1e5+7 
                     ^
0_0_36833413_20465.c:70:7: note: in expansion of macro 'maxn'
 }tree[maxn << 2];
       ^
0_0_36833413_20465.c: In function 'pushup':
0_0_36833413_20465.c:74:2: error: 'tree' undeclared (first use in this function)
  tree[o].lb = (tree[lson].lb + tree[rson].lb) % mod;
  ^
0_0_36833413_20465.c: In function 'pushdown':
0_0_36833413_20465.c:81:6: error: 'tree' undeclared (first use in this function)
  if (tree[o].lazy) {
      ^
0_0_36833413_20465.c:84:36: error: 'm2' undeclared (first use in this function)
   tree[lson].hb = (tree[lson].hb * m2[tree[o].lazy]) % mod;
                                    ^
0_0_36833413_20465.c: In function 'build':
0_0_36833413_20465.c:93:3: error: 'tree' undeclared (first use in this function)
   tree[o].hb = hbit(arr[l]);
   ^
0_0_36833413_20465.c:93:21: error: 'arr' undeclared (first use in this function)
   tree[o].hb = hbit(arr[l]);
                     ^
0_0_36833413_20465.c:96:3: error: expected expression before '/' token
   //cout<<"hb "<<tree[o].hb<<" lb "<<tree[o].lb<<" cnt "<<tree[o].cnt<<endl;
   ^
0_0_36833413_20465.c: In function 'modify':
0_0_36833413_20465.c:107:7: error: 'tree' undeclared (first use in this function)
  if (!tree[o].cnt) {
       ^
0_0_36833413_20465.c: In function 'update':
0_0_36833413_20465.c:133:7: error: 'tree' undeclared (first use in this function)
  if (!tree[o].cnt) {
       ^
0_0_36833413_20465.c: In function 'query':
0_0_36833413_20465.c:154:7: error: 'tree' undeclared (first use in this function)
  if (!tree[o].cnt) {
       ^
0_0_36833413_20465.c: In function 'main':
0_0_36833413_20465.c:181:4: error: 'arr' undeclared (first use in this function)
    arr[i] = read();
    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 19:26:29, Gzip enabled