grader.c: In function ‘int main()’:
grader.c:18:6: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
int res;
^
game.cpp: In function ‘void yup(int, int, int, long long int)’:
game.cpp:22:29: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
yTree.push_back({s1,(s1+e1)/2,-1,-1,-1,0});
^
game.cpp:22:54: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
yTree.push_back({s1,(s1+e1)/2,-1,-1,-1,0});
^
game.cpp:31:29: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
yTree.push_back({(s1+e1)/2+1,e1,-1,-1,-1,0});
^
game.cpp:31:56: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
yTree.push_back({(s1+e1)/2+1,e1,-1,-1,-1,0});
^
game.cpp:38:28: error: ‘gcd2’ was not declared in this scope
yTree[num].val=gcd2(l,r);
^
game.cpp: In function ‘void xup(int, int, int, long long int)’:
game.cpp:45:25: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
yTree.push_back({0,X,-1,-1,-1,0});
^
game.cpp:45:41: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
yTree.push_back({0,X,-1,-1,-1,0});
^
game.cpp:55:29: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
xTree.push_back({s1,(s1+e1)/2,-1,-1,-1,0});
^
game.cpp:55:54: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
xTree.push_back({s1,(s1+e1)/2,-1,-1,-1,0});
^
game.cpp:64:29: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
xTree.push_back({(s1+e1)/2+1,e1,-1,-1,-1,0});
^
game.cpp:64:56: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
xTree.push_back({(s1+e1)/2+1,e1,-1,-1,-1,0});
^
game.cpp: In function ‘long long int yans(int, int, int, int, int)’:
game.cpp:75:20: error: ‘gcd2’ was not declared in this scope
return gcd2(l,r);
^
game.cpp: In function ‘long long int xans(int, int, int, int, int)’:
game.cpp:88:20: error: ‘gcd2’ was not declared in this scope
return gcd2(l,r);
^
game.cpp: In function ‘void init(int, int)’:
game.cpp:93:21: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
xTree.push_back({0,X,-1,-1,-1,0});
^
game.cpp:93:37: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
xTree.push_back({0,X,-1,-1,-1,0});
^
game.cpp: In function ‘long long int yans(int, int, int, int, int)’:
game.cpp:76:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
game.cpp: In function ‘long long int xans(int, int, int, int, int)’:
game.cpp:89:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^