0_0_18438398_25389\Main.java:7: 错误: 非法字符: '#'
#include <stdio.h>
^
0_0_18438398_25389\Main.java:7: 错误: 需要class, interface或enum
#include <stdio.h>
^
0_0_18438398_25389\Main.java:8: 错误: 非法字符: '#'
#include <string.h>
^
0_0_18438398_25389\Main.java:9: 错误: 非法字符: '#'
#include <iostream>
^
0_0_18438398_25389\Main.java:10: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_18438398_25389\Main.java:11: 错误: 非法字符: '#'
#include <vector>
^
0_0_18438398_25389\Main.java:12: 错误: 非法字符: '#'
#include <queue>
^
0_0_18438398_25389\Main.java:13: 错误: 非法字符: '#'
#include <set>
^
0_0_18438398_25389\Main.java:14: 错误: 非法字符: '#'
#include <map>
^
0_0_18438398_25389\Main.java:15: 错误: 非法字符: '#'
#include <string>
^
0_0_18438398_25389\Main.java:16: 错误: 非法字符: '#'
#include <math.h>
^
0_0_18438398_25389\Main.java:17: 错误: 非法字符: '#'
#include <stdlib.h>
^
0_0_18438398_25389\Main.java:19: 错误: 需要class, interface或enum
const int MOD = 10007;
^
0_0_18438398_25389\Main.java:20: 错误: 需要class, interface或enum
const int MAXN = 100010;
^
0_0_18438398_25389\Main.java:21: 错误: 需要class, interface或enum
struct Node
^
0_0_18438398_25389\Main.java:24: 错误: 需要class, interface或enum
int sum1,sum2,sum3;
^
0_0_18438398_25389\Main.java:25: 错误: 需要class, interface或enum
int lazy1,lazy2,lazy3;
^
0_0_18438398_25389\Main.java:26: 错误: 需要class, interface或enum
}segTree[MAXN*3];
^
0_0_18438398_25389\Main.java:27: 错误: 需要class, interface或enum
void build(int i,int l,int r)
^
0_0_18438398_25389\Main.java:30: 错误: 需要class, interface或enum
segTree[i].r = r;
^
0_0_18438398_25389\Main.java:31: 错误: 需要class, interface或enum
segTree[i].sum1 = segTree[i].sum2 = segTree[i].sum3 = 0;
^
0_0_18438398_25389\Main.java:32: 错误: 需要class, interface或enum
segTree[i].lazy1 = segTree[i].lazy3 = 0;
^
0_0_18438398_25389\Main.java:33: 错误: 需要class, interface或enum
segTree[i].lazy2 = 1;
^
0_0_18438398_25389\Main.java:34: 错误: 需要class, interface或enum
int mid = (l+r)/2;
^
0_0_18438398_25389\Main.java:35: 错误: 需要class, interface或enum
if(l == r)return;
^
0_0_18438398_25389\Main.java:36: 错误: 需要class, interface或enum
build(i<<1,l,mid);
^
0_0_18438398_25389\Main.java:37: 错误: 需要class, interface或enum
build((i<<1)|1,mid+1,r);
^
0_0_18438398_25389\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_18438398_25389\Main.java:43: 错误: 需要class, interface或enum
segTree[i].sum1 = (segTree[i<<1].sum1 + segTree[(i<<1)|1].sum1)%MOD;
^
0_0_18438398_25389\Main.java:44: 错误: 需要class, interface或enum
segTree[i].sum2 = (segTree[i<<1].sum2 + segTree[(i<<1)|1].sum2)%MOD;
^
0_0_18438398_25389\Main.java:45: 错误: 需要class, interface或enum
segTree[i].sum3 = (segTree[i<<1].sum3 + segTree[(i<<1)|1].sum3)%MOD;
^
0_0_18438398_25389\Main.java:47: 错误: 需要class, interface或enum
}
^
0_0_18438398_25389\Main.java:52: 错误: 需要class, interface或enum
if(segTree[i].lazy3 != 0)
^
0_0_18438398_25389\Main.java:55: 错误: 需要class, interface或enum
segTree[i<<1].lazy1 = segTree[(i<<1)|1].lazy1 = 0;
^
0_0_18438398_25389\Main.java:56: 错误: 需要class, interface或enum
segTree[i<<1].lazy2 = segTree[(i<<1)|1].lazy2 = 1;
^
0_0_18438398_25389\Main.java:57: 错误: 需要class, interface或enum
segTree[i<<1].sum1 = (segTree[i<<1].r - segTree[i<<1].l + 1)*segTree[i<<1].lazy3%MOD;
^
0_0_18438398_25389\Main.java:58: 错误: 需要class, interface或enum
segTree[i<<1].sum2 = (segTree[i<<1].r - segTree[i<<1].l + 1)*segTree[i<<1].lazy3%MOD*segTree[i<<1].lazy3%MOD;
^
0_0_18438398_25389\Main.java:59: 错误: 需要class, interface或enum
segTree[i<<1].sum3 = (segTree[i<<1].r - segTree[i<<1].l + 1)*segTree[i<<1].lazy3%MOD*segTree[i<<1].lazy3%MOD*segTree[i<<1].lazy3%MOD;
^
0_0_18438398_25389\Main.java:60: 错误: 需要class, interface或enum
segTree[(i<<1)|1].sum1 = (segTree[(i<<1)|1].r - segTree[(i<<1)|1].l + 1)*segTree[(i<<1)|1].lazy3%MOD;
^
0_0_18438398_25389\Main.java:61: 错误: 需要class, interface或enum
segTree[(i<<1)|1].sum2 = (segTree[(i<<1)|1].r - segTree[(i<<1)|1].l + 1)*segTree[(i<<1)|1].lazy3%MOD*segTree[(i<<1)|1].lazy3%MOD;
^
0_0_18438398_25389\Main.java:62: 错误: 需要class, interface或enum
segTree[(i<<1)|1].sum3 = (segTree[(i<<1)|1].r - segTree[(i<<1)|1].l + 1)*segTree[(i<<1)|1].lazy3%MOD*segTree[(i<<1)|1].lazy3%MOD*segTree[(i<<1)|1].lazy3%MOD;
^
0_0_18438398_25389\Main.java:63: 错误: 需要class, interface或enum
segTree[i].lazy3 = 0;
^
0_0_18438398_25389\Main.java:64: 错误: 需要class, interface或enum
}
^
0_0_18438398_25389\Main.java:68: 错误: 需要class, interface或enum
segTree[i<<1].lazy2 = segTree[i<<1].lazy2*segTree[i].lazy2%MOD;
^
0_0_18438398_25389\Main.java:69: 错误: 需要class, interface或enum
int sum1,sum2,sum3;
^
0_0_18438398_25389\Main.java:70: 错误: 需要class, interface或enum
sum1 = (segTree[i<<1].sum1*segTree[i].lazy2%MOD + (segTree[i<<1].r - segTree[i<<1].l + 1)*segTree[i].lazy1%MOD)%MOD;
^
0_0_18438398_25389\Main.java:71: 错误: 需要class, interface或enum
sum2 = (segTree[i].lazy2 * segTree[i].lazy2 % MOD * segTree[i<<1].sum2 % MOD + 2*segTree[i].lazy1*segTree[i].lazy2%MOD * segTree[i<<1].sum1%MOD + (segTree[i<<1].r - segTree[i<<1].l + 1)*segTree[i].lazy1%MOD*segTree[i].lazy1%MOD)%MOD;
^
0_0_18438398_25389\Main.java:72: 错误: 需要class, interface或enum
sum3 = segTree[i].lazy2 * segTree[i].lazy2 % MOD * segTree[i].lazy2 % MOD * segTree[i<<1].sum3 % MOD;
^
0_0_18438398_25389\Main.java:73: 错误: 需要class, interface或enum
sum3 = (sum3 + 3*segTree[i].lazy2 % MOD * segTree[i].lazy2 % MOD * segTree[i].lazy1 % MOD * segTree[i<<1].sum2) % MOD;
^
0_0_18438398_25389\Main.java:74: 错误: 需要class, interface或enum
sum3 = (sum3 + 3*segTree[i].lazy2 % MOD * segTree[i].lazy1 % MOD * segTree[i].lazy1 % MOD * segTree[i<<1].sum1) % MOD;
^
0_0_18438398_25389\Main.java:75: 错误: 需要class, interface或enum
sum3 = (sum3 + (segTree[i<<1].r - segTree[i<<1].l + 1)*segTree[i].lazy1%MOD * segTree[i].lazy1 % MOD * segTree[i].lazy1 % MOD) % MOD;
^
0_0_18438398_25389\Main.java:76: 错误: 需要class, interface或enum
segTree[i<<1].sum1 = sum1;
^
0_0_18438398_25389\Main.java:77: 错误: 需要class, interface或enum
segTree[i<<1].sum2 = sum2;
^
0_0_18438398_25389\Main.java:78: 错误: 需要class, interface或enum
segTree[i<<1].sum3 = sum3;
^
0_0_18438398_25389\Main.java:79: 错误: 需要class, interface或enum
segTree[(i<<1)|1].lazy1 = ( segTree[i].lazy2*segTree[(i<<1)|1].lazy1%MOD + segTree[i].lazy1 )%MOD;
^
0_0_18438398_25389\Main.java:80: 错误: 需要class, interface或enum
segTree[(i<<1)|1].lazy2 = segTree[(i<<1)|1].lazy2 * segTree[i].lazy2 % MOD;
^
0_0_18438398_25389\Main.java:81: 错误: 需要class, interface或enum
sum1 = (segTree[(i<<1)|1].sum1*segTree[i].lazy2%MOD + (segTree[(i<<1)|1].r - segTree[(i<<1)|1].l + 1)*segTree[i].lazy1%MOD)%MOD;
^
0_0_18438398_25389\Main.java:82: 错误: 需要class, interface或enum
sum2 = (segTree[i].lazy2 * segTree[i].lazy2 % MOD * segTree[(i<<1)|1].sum2 % MOD + 2*segTree[i].lazy1*segTree[i].lazy2%MOD * segTree[(i<<1)|1].sum1%MOD + (segTree[(i<<1)|1].r - segTree[(i<<1)|1].l + 1)*segTree[i].lazy1%MOD*segTree[i].lazy1%MOD)%MOD;
^
0_0_18438398_25389\Main.java:83: 错误: 需要class, interface或enum
sum3 = segTree[i].lazy2 * segTree[i].lazy2 % MOD * segTree[i].lazy2 % MOD * segTree[(i<<1)|1].sum3 % MOD;
^
0_0_18438398_25389\Main.java:84: 错误: 需要class, interface或enum
sum3 = (sum3 + 3*segTree[i].lazy2 % MOD * segTree[i].lazy2 % MOD * segTree[i].lazy1 % MOD * segTree[(i<<1)|1].sum2) % MOD;
^
0_0_18438398_25389\Main.java:85: 错误: 需要class, interface或enum
sum3 = (sum3 + 3*segTree[i].lazy2 % MOD * segTree[i].lazy1 % MOD * segTree[i].lazy1 % MOD * segTree[(i<<1)|1].sum1) % MOD;
^
0_0_18438398_25389\Main.java:86: 错误: 需要class, interface或enum
sum3 = (sum3 + (segTree[(i<<1)|1].r - segTree[(i<<1)|1].l + 1)*segTree[i].lazy1%MOD * segTree[i].lazy1 % MOD * segTree[i].lazy1 % MOD) % MOD;
^
0_0_18438398_25389\Main.java:87: 错误: 需要class, interface或enum
segTree[(i<<1)|1].sum1 = sum1;
^
0_0_18438398_25389\Main.java:88: 错误: 需要class, interface或enum
segTree[(i<<1)|1].sum2 = sum2;
^
0_0_18438398_25389\Main.java:89: 错误: 需要class, interface或enum
segTree[(i<<1)|1].sum3 = sum3;
^
0_0_18438398_25389\Main.java:90: 错误: 需要class, interface或enum
segTree[i].lazy1 = 0;
^
0_0_18438398_25389\Main.java:91: 错误: 需要class, interface或enum
segTree[i].lazy2 = 1;
^
0_0_18438398_25389\Main.java:93: 错误: 需要class, interface或enum
}
^
0_0_18438398_25389\Main.java:100: 错误: 需要class, interface或enum
if(type == 1)
^
0_0_18438398_25389\Main.java:103: 错误: 需要class, interface或enum
segTree[i].lazy1 %= MOD;
^
0_0_18438398_25389\Main.java:104: 错误: 需要class, interface或enum
segTree[i].sum3 = (segTree[i].sum3 + 3*segTree[i].sum2%MOD*c%MOD + 3*segTree[i].sum1%MOD*c%MOD*c%MOD + (segTree[i].r - segTree[i].l + 1)*c%MOD*c%MOD*c%MOD)%MOD;
|