horses.cpp: In member function 'void IT::build(long long int, long long int, long long int)':
horses.cpp:57:36: warning: declaration of 'r' shadows a global declaration [-Wshadow]
57 | void build(int node,int l,int r)
| ^
horses.cpp:46:76: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^
horses.cpp:57:30: warning: declaration of 'l' shadows a global declaration [-Wshadow]
57 | void build(int node,int l,int r)
| ^
horses.cpp:46:74: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^
horses.cpp:60:16: warning: declaration of 'mid' shadows a global declaration [-Wshadow]
60 | int mid=l+r>>1;
| ^~~
horses.cpp:46:78: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^~~
horses.cpp:60:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
60 | int mid=l+r>>1;
| ~^~
horses.cpp: In member function 'void IT::upd(long long int, long long int, long long int, long long int)':
horses.cpp:65:35: warning: declaration of 'r' shadows a global declaration [-Wshadow]
65 | void upd(int node,int l,int r,int l1)
| ^
horses.cpp:46:76: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^
horses.cpp:65:29: warning: declaration of 'l' shadows a global declaration [-Wshadow]
65 | void upd(int node,int l,int r,int l1)
| ^
horses.cpp:46:74: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^
horses.cpp:68:16: warning: declaration of 'mid' shadows a global declaration [-Wshadow]
68 | int mid=l+r>>1;
| ^~~
horses.cpp:46:78: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^~~
horses.cpp:68:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
68 | int mid=l+r>>1;
| ~^~
horses.cpp: In member function 'long long int IT::get(long long int, long long int, long long int, long long int, long long int)':
horses.cpp:73:34: warning: declaration of 'r' shadows a global declaration [-Wshadow]
73 | int get(int node,int l,int r,int l1,int r1)
| ^
horses.cpp:46:76: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^
horses.cpp:73:28: warning: declaration of 'l' shadows a global declaration [-Wshadow]
73 | int get(int node,int l,int r,int l1,int r1)
| ^
horses.cpp:46:74: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^
horses.cpp:77:19: warning: declaration of 'mid' shadows a global declaration [-Wshadow]
77 | int mid=l+r>>1;
| ^~~
horses.cpp:46:78: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^~~
horses.cpp:77:24: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
77 | int mid=l+r>>1;
| ~^~
horses.cpp: In member function 'void IT2::build(long long int, long long int, long long int)':
horses.cpp:83:31: warning: declaration of 'r' shadows a global declaration [-Wshadow]
83 | void build(int node,int l,int r)
| ^
horses.cpp:46:76: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^
horses.cpp:83:25: warning: declaration of 'l' shadows a global declaration [-Wshadow]
83 | void build(int node,int l,int r)
| ^
horses.cpp:46:74: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^
horses.cpp:86:16: warning: declaration of 'mid' shadows a global declaration [-Wshadow]
86 | int mid=l+r>>1;
| ^~~
horses.cpp:46:78: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^~~
horses.cpp:86:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
86 | int mid=l+r>>1;
| ~^~
horses.cpp: In member function 'void IT2::upd(long long int, long long int, long long int, long long int)':
horses.cpp:91:35: warning: declaration of 'r' shadows a global declaration [-Wshadow]
91 | void upd(int node,int l,int r,int l1)
| ^
horses.cpp:46:76: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^
horses.cpp:91:29: warning: declaration of 'l' shadows a global declaration [-Wshadow]
91 | void upd(int node,int l,int r,int l1)
| ^
horses.cpp:46:74: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^
horses.cpp:94:16: warning: declaration of 'mid' shadows a global declaration [-Wshadow]
94 | int mid=l+r>>1;
| ^~~
horses.cpp:46:78: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^~~
horses.cpp:94:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
94 | int mid=l+r>>1;
| ~^~
horses.cpp: In member function 'long long int IT2::get(long long int, long long int, long long int, long long int, long long int)':
horses.cpp:99:34: warning: declaration of 'r' shadows a global declaration [-Wshadow]
99 | int get(int node,int l,int r,int l1,int r1)
| ^
horses.cpp:46:76: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^
horses.cpp:99:28: warning: declaration of 'l' shadows a global declaration [-Wshadow]
99 | int get(int node,int l,int r,int l1,int r1)
| ^
horses.cpp:46:74: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^
horses.cpp:103:19: warning: declaration of 'mid' shadows a global declaration [-Wshadow]
103 | int mid=l+r>>1;
| ^~~
horses.cpp:46:78: note: shadowed declaration is here
46 | int n,m,s1,s2,s4,s3,sf,k,s5,s6,mx,s7,s8,s9,mx2,res,dem2=0,dem=0,s33,dem3,l,r,mid;
| ^~~
horses.cpp:103:24: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
103 | int mid=l+r>>1;
| ~^~
horses.cpp: In function 'void setup()':
horses.cpp:109:15: warning: declaration of 'i' shadows a global declaration [-Wshadow]
109 | for(int i=n;i>=1;--i)
| ^
horses.cpp:47:6: note: shadowed declaration is here
47 | int i,s10,s12;
| ^
horses.cpp:110:10: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
110 | if(a[i]!=1)
| ^~
horses.cpp:112:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
112 | s.insert(1);
| ^
horses.cpp:125:14: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
125 | if(s2>1e9) break;
| ^~
horses.cpp: In function 'void setup2()':
horses.cpp:145:14: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
145 | if(s2>1e9) break;
| ^~
horses.cpp: In function 'long long int init(long long int, long long int*, long long int*)':
horses.cpp:151:12: warning: declaration of 'i' shadows a global declaration [-Wshadow]
151 | for(int i=1;i<=n;i++)
| ^
horses.cpp:47:6: note: shadowed declaration is here
47 | int i,s10,s12;
| ^
horses.cpp:151:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
151 | for(int i=1;i<=n;i++)
| ^~~
horses.cpp:153:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
153 | for(int i=1;i<=n;i++)
| ^~~
horses.cpp:153:13: warning: declaration of 'i' shadows a global declaration [-Wshadow]
153 | for(int i=1;i<=n;i++)
| ^
horses.cpp:47:6: note: shadowed declaration is here
47 | int i,s10,s12;
| ^
/usr/bin/ld: /tmp/cconGmlp.o: in function `main':
grader.c:(.text.startup+0xaa): undefined reference to `init(int, int*, int*)'
/usr/bin/ld: grader.c:(.text.startup+0x113): undefined reference to `updateX(int, int)'
/usr/bin/ld: grader.c:(.text.startup+0x16d): undefined reference to `updateY(int, int)'
collect2: error: ld returned 1 exit status