xylophone.cpp: In function 'int simuliraj(int, int, int)':
xylophone.cpp:11:16: error: 'max' was not declared in this scope
return max(max(a,b), c) - min(min(a,b), c);
^~~
xylophone.cpp:11:12: error: 'max' was not declared in this scope
return max(max(a,b), c) - min(min(a,b), c);
^~~
xylophone.cpp:11:35: error: 'min' was not declared in this scope
return max(max(a,b), c) - min(min(a,b), c);
^~~
xylophone.cpp:11:31: error: 'min' was not declared in this scope
return max(max(a,b), c) - min(min(a,b), c);
^~~
xylophone.cpp: In function 'void solve(int)':
xylophone.cpp:20:19: error: 'query' was not declared in this scope
int pom = query(mid, n);
^~~~~
xylophone.cpp:37:29: error: 'query' was not declared in this scope
niz[poz1 - 1] = 1 + query(poz1 - 1, poz1);
^~~~~
xylophone.cpp:39:25: error: 'query' was not declared in this scope
niz[poz1 + 1] = 1 + query(poz1, poz1 + 1);
^~~~~
xylophone.cpp:51:13: warning: unused variable 'tmp2' [-Wunused-variable]
int tmp2 = simuliraj(niz[i + 1], niz[i + 2], drugi);
^~~~
xylophone.cpp:66:13: warning: unused variable 'tmp2' [-Wunused-variable]
int tmp2 = simuliraj(niz[i - 1], niz[i - 2], drugi);
^~~~
xylophone.cpp:70:28: error: 'answer' was not declared in this scope
for(int i=1; i<=n; i++)answer(i, niz[i]);
^~~~~~