0_0_22842788_17510.cpp:1:1: error: 'include' does not name a type
include<bits/stdc++.h>
^
0_0_22842788_17510.cpp: In function 'bool scan(T&)':
0_0_22842788_17510.cpp:13:21: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
if (c = getchar(), c == EOF) return 0; //EOF
^
0_0_22842788_17510.cpp:13:21: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_22842788_17510.cpp:13:29: error: 'EOF' was not declared in this scope
if (c = getchar(), c == EOF) return 0; //EOF
^
0_0_22842788_17510.cpp:14:59: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while (c != '-' && (c < '0' || c > '9') ) c = getchar();
^
0_0_22842788_17510.cpp:17:24: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while (c = getchar(), c >= '0' && c <= '9') ret = ret * 10 + (c - '0');
^
0_0_22842788_17510.cpp: In member function 'void kd_tree::update(int)':
0_0_22842788_17510.cpp:52:78: error: 'min' was not declared in this scope
pool[i].Min[q]=min(pool[i].Min[q],pool[pool[i].son[0]].Min[q]),pool[i].Max[q]=max(pool[i].Max[q],pool[pool[i].son[0]].Max[q]);
^
0_0_22842788_17510.cpp:52:141: error: 'max' was not declared in this scope
pool[i].Min[q]=min(pool[i].Min[q],pool[pool[i].son[0]].Min[q]),pool[i].Max[q]=max(pool[i].Max[q],pool[pool[i].son[0]].Max[q]);
^
0_0_22842788_17510.cpp:57:78: error: 'min' was not declared in this scope
pool[i].Min[q]=min(pool[i].Min[q],pool[pool[i].son[1]].Min[q]),pool[i].Max[q]=max(pool[i].Max[q],pool[pool[i].son[1]].Max[q]);
^
0_0_22842788_17510.cpp:57:141: error: 'max' was not declared in this scope
pool[i].Min[q]=min(pool[i].Min[q],pool[pool[i].son[1]].Min[q]),pool[i].Max[q]=max(pool[i].Max[q],pool[pool[i].son[1]].Max[q]);
^
0_0_22842788_17510.cpp: In member function 'int kd_tree::build(int, int, int)':
0_0_22842788_17510.cpp:64:45: error: 'nth_element' was not declared in this scope
nth_element(pool+l,pool+mid,pool+r+1);//×ó±ÕÓÒ¿ª
^
0_0_22842788_17510.cpp: In function 'int main()':
0_0_22842788_17510.cpp:115:58: error: 'printf' was not declared in this scope
printf("%d %d %d\n",tmp2.p[0],tmp2.p[1],tmp2.p[2]);
^
0_0_22842788_17510.cpp: In instantiation of 'bool scan(T&) [with T = int]':
0_0_22842788_17510.cpp:100:11: required from here
0_0_22842788_17510.cpp:13:21: error: 'getchar' was not declared in this scope
if (c = getchar(), c == EOF) return 0; //EOF
^
0_0_22842788_17510.cpp:14:59: error: 'getchar' was not declared in this scope
while (c != '-' && (c < '0' || c > '9') ) c = getchar();
^
0_0_22842788_17510.cpp:17:24: error: 'getchar' was not declared in this scope
while (c = getchar(), c >= '0' && c <= '9') ret = ret * 10 + (c - '0');
^
|