/in/foo.cc: In function 'long long int search(long long int, long long int)':
/in/foo.cc:45:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (k==0) break;father=k;
^~
/in/foo.cc:45:19: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if (k==0) break;father=k;
^~~~~~
/in/foo.cc: At global scope:
/in/foo.cc:54:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
/in/foo.cc: In function 'long long int search(long long int, long long int)':
/in/foo.cc:43:16: warning: 'father' may be used uninitialized in this function [-Wmaybe-uninitialized]
int mini=1e17,father;
^~~~~~