0_0_35927890_8855.cpp:6:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_35927890_8855.cpp:8:5: note: in expansion of macro 'int'
int pre,id;
^
0_0_35927890_8855.cpp:8:9: error: 'pre' does not name a type
int pre,id;
^
0_0_35927890_8855.cpp:6:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_35927890_8855.cpp:10:1: note: in expansion of macro 'int'
int head[maxn],tot;
^
0_0_35927890_8855.cpp:10:5: error: 'head' does not name a type
int head[maxn],tot;
^
0_0_35927890_8855.cpp:6:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_35927890_8855.cpp:11:1: note: in expansion of macro 'int'
int mp[2100];
^
0_0_35927890_8855.cpp:11:5: error: 'mp' does not name a type
int mp[2100];
^
0_0_35927890_8855.cpp:6:22: error: expected ')' before ';' token
#define int long long;
^
0_0_35927890_8855.cpp:12:10: note: in expansion of macro 'int'
void add(int u,int v){
^
0_0_35927890_8855.cpp:12:14: error: 'u' does not name a type
void add(int u,int v){
^
0_0_35927890_8855.cpp:12:20: error: 'v' does not name a type
void add(int u,int v){
^
0_0_35927890_8855.cpp:6:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_35927890_8855.cpp:17:1: note: in expansion of macro 'int'
int n,m,num=0;
^
0_0_35927890_8855.cpp:17:5: error: 'n' does not name a type
int n,m,num=0;
^
0_0_35927890_8855.cpp:6:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_35927890_8855.cpp:18:1: note: in expansion of macro 'int'
int vis[maxn],sz[maxn],root,mx[maxn],S;
^
0_0_35927890_8855.cpp:18:5: error: 'vis' does not name a type
int vis[maxn],sz[maxn],root,mx[maxn],S;
^
0_0_35927890_8855.cpp:6:22: error: expected ')' before ';' token
#define int long long;
^
0_0_35927890_8855.cpp:19:12: note: in expansion of macro 'int'
void getrt(int u,int fa){
^
0_0_35927890_8855.cpp:19:16: error: 'u' does not name a type
void getrt(int u,int fa){
^
0_0_35927890_8855.cpp:19:22: error: 'fa' does not name a type
void getrt(int u,int fa){
^
0_0_35927890_8855.cpp:6:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_35927890_8855.cpp:37:1: note: in expansion of macro 'int'
int sta[maxn],top=0;
^
0_0_35927890_8855.cpp:37:5: error: 'sta' does not name a type
int sta[maxn],top=0;
^
0_0_35927890_8855.cpp:6:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_35927890_8855.cpp:38:1: note: in expansion of macro 'int'
int val[maxn],stard,fans = 0;
^
0_0_35927890_8855.cpp:38:5: error: 'val' does not name a type
int val[maxn],stard,fans = 0;
^
0_0_35927890_8855.cpp:6:22: error: expected ')' before ';' token
#define int long long;
^
0_0_35927890_8855.cpp:39:11: note: in expansion of macro 'int'
void calc(int u,int fa,int val1){
^
0_0_35927890_8855.cpp:39:15: error: 'u' does not name a type
void calc(int u,int fa,int val1){
^
0_0_35927890_8855.cpp:39:21: error: 'fa' does not name a type
void calc(int u,int fa,int val1){
^
0_0_35927890_8855.cpp:39:28: error: 'val1' does not name a type
void calc(int u,int fa,int val1){
^
0_0_35927890_8855.cpp:6:22: error: expected ')' before ';' token
#define int long long;
^
0_0_35927890_8855.cpp:48:12: note: in expansion of macro 'int'
void solve(int u,int val1){
^
0_0_35927890_8855.cpp:48:16: error: 'u' does not name a type
void solve(int u,int val1){
^
0_0_35927890_8855.cpp:48:22: error: 'val1' does not name a type
void solve(int u,int val1){
^
0_0_35927890_8855.cpp:6:22: error: expected ')' before ';' token
#define int long long;
^
0_0_35927890_8855.cpp:77:13: note: in expansion of macro 'int'
void divide(int x){
^
0_0_35927890_8855.cpp:77:17: error: 'x' does not name a type
void divide(int x){
^
0_0_35927890_8855.cpp: In function 'int main()':
0_0_35927890_8855.cpp:89:30: error: 'n' was not declared in this scope
while(scanf("%lld %lld",&n,&m)!=EOF){
^
0_0_35927890_8855.cpp:89:33: error: 'm' was not declared in this scope
while(scanf("%lld %lld",&n,&m)!=EOF){
^
0_0_35927890_8855.cpp:90:9: error: 'tot' was not declared in this scope
tot = 0;
^
0_0_35927890_8855.cpp:91:9: error: 'fans' was not declared in this scope
fans = 0;
^
0_0_35927890_8855.cpp:92:9: error: 'stard' was not declared in this scope
stard = (1<<m)-1;
^
0_0_35927890_8855.cpp:93:16: error: 'head' was not declared in this scope
memset(head,0,sizeof head);
^
0_0_35927890_8855.cpp:94:16: error: 'vis' was not declared in this scope
memset(vis,0,sizeof vis);
^
0_0_35927890_8855.cpp:6:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_35927890_8855.cpp:95:13: note: in expansion of macro 'int'
for(int i=1;i<=n;i++){
^
0_0_35927890_8855.cpp:95:17: error: 'i' was not declared in this scope
for(int i=1;i<=n;i++){
^
0_0_35927890_8855.cpp:95:25: error: expected ')' before ';' token
for(int i=1;i<=n;i++){
^
0_0_35927890_8855.cpp:95:26: error: 'i' was not declared in this scope
for(int i=1;i<=n;i++){
^
0_0_35927890_8855.cpp:6:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_35927890_8855.cpp:100:13: note: in expansion of macro 'int'
for(int i=1;i<n;i++){
^
0_0_35927890_8855.cpp:100:24: error: expected ')' before ';' token
for(int i=1;i<n;i++){
^
0_0_35927890_8855.cpp:110:9: error: 'root' was not declared in this scope
root = 0;
^
0_0_35927890_8855.cpp:111:9: error: 'mx' was not declared in this scope
mx[0] = n;
^
0_0_35927890_8855.cpp:112:9: error: 'S' was not declared in this scope
S = n;
^
0_0_35927890_8855.cpp:113:18: error: too many arguments to function 'void getrt(long long int)'
getrt(1,0);
^
0_0_35927890_8855.cpp:19:6: note: declared here
void getrt(int u,int fa){
^
|