meandian.cpp: In function 'int main()':
meandian.cpp:16:17: warning: unused variable 'tmp' [-Wunused-variable]
16 | int tmp = 0, mx = 0, mn = INT_MAX;
| ^~~
meandian.cpp:16:26: warning: unused variable 'mx' [-Wunused-variable]
16 | int tmp = 0, mx = 0, mn = INT_MAX;
| ^~
meandian.cpp:16:34: warning: unused variable 'mn' [-Wunused-variable]
16 | int tmp = 0, mx = 0, mn = INT_MAX;
| ^~
meandian.cpp:25:17: warning: unused variable 'w' [-Wunused-variable]
25 | int w = Meandian(q[1], q[2], q[3], q[4]);
| ^
meandian.cpp:27:9: error: 'tmp' was not declared in this scope; did you mean 'tm'?
27 | tmp += w;
| ^~~
| tm
meandian.cpp:27:16: error: 'w' was not declared in this scope
27 | tmp += w;
| ^
meandian.cpp:28:9: error: 'mx' was not declared in this scope
28 | mx = max(mx, w);
| ^~
meandian.cpp:29:9: error: 'mn' was not declared in this scope; did you mean 'n'?
29 | mn = min(mn, w);
| ^~
| n
meandian.cpp:46:26: error: 't' was not declared in this scope
46 | ans[j] = t;
| ^
meandian.cpp:48:26: error: 's' was not declared in this scope
48 | ans[j] = s;
| ^
meandian.cpp:33:17: warning: unused variable 'tmp' [-Wunused-variable]
33 | int tmp = 0, mx = 0, mn = INT_MAX;
| ^~~