foo.cpp: In function 'int search(int)':
foo.cpp:20:6: error: expected primary-expression before '}' token
}
^
foo.cpp:20:6: error: expected ';' before '}' token
foo.cpp:31:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
foo.cpp: In function 'int main()':
foo.cpp:34:25: warning: unknown conversion type character 'l' in format [-Wformat=]
scanf("%lld %lld",&n,&m);
^
foo.cpp:34:25: warning: unknown conversion type character 'l' in format [-Wformat=]
foo.cpp:34:25: warning: too many arguments for format [-Wformat-extra-args]