0_0_28181044_11435.cpp:1:1: error: 'include' does not name a type
include <bits/stdc++.h>
^
0_0_28181044_11435.cpp:9:9: error: 'pair' does not name a type
typedef pair<int, int> pii;
^
0_0_28181044_11435.cpp:11:28: error: 'acos' was not declared in this scope
const double PI = acos(-1.0);
^
0_0_28181044_11435.cpp:13:21: error: 'sqrt' was not declared in this scope
const int M = sqrt(N) + 10;
^
0_0_28181044_11435.cpp:17:5: error: 'map' does not name a type
map<int, int>info;
^
0_0_28181044_11435.cpp:23:10: error: size of array 'B' is not an integral constant-expression
block B[M];
^
0_0_28181044_11435.cpp: In function 'void init(int)':
0_0_28181044_11435.cpp:29:18: error: 'sqrt' was not declared in this scope
unit = sqrt(n);
^
0_0_28181044_11435.cpp:38:14: error: 'struct block' has no member named 'info'
B[i].info.clear();
^
0_0_28181044_11435.cpp:44:24: error: 'struct block' has no member named 'info'
++B[belong[i]].info[arr[i]];
^
0_0_28181044_11435.cpp: In function 'void pushdown(int)':
0_0_28181044_11435.cpp:53:14: error: 'struct block' has no member named 'info'
B[x].info.clear();
^
0_0_28181044_11435.cpp:54:14: error: 'struct block' has no member named 'info'
B[x].info[B[x].color] = B[x].len();
^
0_0_28181044_11435.cpp: In function 'void update(int, int, int)':
0_0_28181044_11435.cpp:69:21: error: 'struct block' has no member named 'info'
--B[bl].info[arr[i]];
^
0_0_28181044_11435.cpp:70:21: error: 'struct block' has no member named 'info'
++B[bl].info[c];
^
0_0_28181044_11435.cpp:75:21: error: 'struct block' has no member named 'info'
--B[br].info[arr[i]];
^
0_0_28181044_11435.cpp:76:21: error: 'struct block' has no member named 'info'
++B[br].info[c];
^
0_0_28181044_11435.cpp:85:21: error: 'struct block' has no member named 'info'
--B[bl].info[arr[i]];
^
0_0_28181044_11435.cpp:86:21: error: 'struct block' has no member named 'info'
++B[bl].info[c];
^
0_0_28181044_11435.cpp: In function 'int query(int, int, int)':
0_0_28181044_11435.cpp:101:22: error: 'struct block' has no member named 'info'
if (B[i].info.find(c) != B[i].info.end())
^
0_0_28181044_11435.cpp:101:43: error: 'struct block' has no member named 'info'
if (B[i].info.find(c) != B[i].info.end())
^
0_0_28181044_11435.cpp:102:29: error: 'struct block' has no member named 'info'
ret += B[i].info[c];
^
0_0_28181044_11435.cpp: In function 'int main()':
0_0_28181044_11435.cpp:125:33: error: 'scanf' was not declared in this scope
while (~scanf("%d%d", &n, &m))
^
0_0_28181044_11435.cpp:137:46: error: 'printf' was not declared in this scope
printf("%d\n", query(l, r, z));
^
|