In file included from grader.c:2:0:
graderlib.c: In function 'void answer(int*)':
graderlib.c:53:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (_ghksjhdfkae19ga_ > 1)
^~
graderlib.c:56:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
for (i = 0; i < 6; i++) {
^~~
scales.cpp: In lambda function:
scales.cpp:42:52: warning: declaration of 'int i' shadows a parameter [-Wshadow]
sort(arr.begin(), arr.end(), [&p] (int i, int j) {return p[i] < p[j];});
^
scales.cpp:38:16: note: shadowed declaration is here
int median(int i, int A, int B, int C){
^
scales.cpp: In function 'void build(vi&, int, int)':
scales.cpp:65:13: warning: unused variable 'i' [-Wunused-variable]
for(int i : ps){
^
scales.cpp:136:41: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
if(d != a and d != b and d != c);
^
scales.cpp: In function 'int query(int, vi)':
scales.cpp:173:9: warning: declaration of 'int i' shadows a parameter [-Wshadow]
FOR(i, 0, 3) if(val == arg[i]) return i;
^
scales.cpp:7:28: note: in definition of macro 'FOR'
#define FOR(i,l,r) for(int i = (l); i < (r); i++)
^
scales.cpp:167:15: note: shadowed declaration is here
int query(int i, vi arg){
^
scales.cpp: In function 'void init(INT)':
scales.cpp:182:15: warning: unused parameter 'T' [-Wunused-parameter]
void init(INT T) {
^
scales.cpp: In function 'int heavy(int, int, int, int)':
scales.cpp:29:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
scales.cpp: In function 'int light(int, int, int, int)':
scales.cpp:36:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
scales.cpp: In function 'int median(int, int, int, int)':
scales.cpp:46:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
scales.cpp: In function 'int nextl(int, int, int, int, int)':
scales.cpp:58:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
scales.cpp: In function 'int query(int, vi)':
scales.cpp:174:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^