0_0_14944290_12637.cpp: In function 'T& RD(T&)':
0_0_14944290_12637.cpp:8:22: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
for (c = getchar(); c < '0'; c = getchar());
^
0_0_14944290_12637.cpp:8:22: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_14944290_12637.cpp:8:46: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
for (c = getchar(); c < '0'; c = getchar());
^
0_0_14944290_12637.cpp:10:22: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
for (c = getchar(); '0' <= c && c <= '9'; c = getchar()) x = x * 10 + c - '0';
^
0_0_14944290_12637.cpp:10:59: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
for (c = getchar(); '0' <= c && c <= '9'; c = getchar()) x = x * 10 + c - '0';
^
0_0_14944290_12637.cpp: At global scope:
0_0_14944290_12637.cpp:31:1: error: 'vector' does not name a type
vector <int> pos[N];
^
0_0_14944290_12637.cpp: In function 'void add(int, int)':
0_0_14944290_12637.cpp:64:47: error: 'lowbit' was not declared in this scope
for (int i = idx ; i <= n ; i += lowbit (i))
^
0_0_14944290_12637.cpp: In function 'int sum(int)':
0_0_14944290_12637.cpp:70:46: error: 'lowbit' was not declared in this scope
for (int i = idx ; i > 0 ; i -= lowbit (i))
^
0_0_14944290_12637.cpp: In function 'int main()':
0_0_14944290_12637.cpp:87:13: error: 'pos' was not declared in this scope
pos[i].clear ();
^
0_0_14944290_12637.cpp:88:34: error: 'memset' was not declared in this scope
memset (p , 0 , sizeof(p));
^
0_0_14944290_12637.cpp:93:49: error: 'max' was not declared in this scope
idx = max (idx , p[fac[a[i]][j]]);
^
0_0_14944290_12637.cpp:97:13: error: 'pos' was not declared in this scope
pos[idx].push_back (i);
^
0_0_14944290_12637.cpp:104:49: error: 'min' was not declared in this scope
idx = min (idx , p[fac[a[i]][j]]);
^
0_0_14944290_12637.cpp:111:24: error: 'sort' was not declared in this scope
sort (q , q + m);
^
0_0_14944290_12637.cpp:129:38: error: 'pos' was not declared in this scope
for (int j = 0 ; j < pos[left].size() ; j ++)
^
0_0_14944290_12637.cpp:140:36: error: 'printf' was not declared in this scope
printf ("%d\n" , ans[i]);
^
0_0_14944290_12637.cpp: In instantiation of 'T& RD(T&) [with T = int]':
0_0_14944290_12637.cpp:20:13: required from here
0_0_14944290_12637.cpp:8:22: error: 'getchar' was not declared in this scope
for (c = getchar(); c < '0'; c = getchar());
^
0_0_14944290_12637.cpp:10:22: error: 'getchar' was not declared in this scope
for (c = getchar(); '0' <= c && c <= '9'; c = getchar()) x = x * 10 + c - '0';
^
|