bizarre.cpp:1:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(disable:4996)
^
bizarre.cpp: In function ‘int main()’:
bizarre.cpp:28:3: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto it = s.lower_bound(b);
^
bizarre.cpp:28:8: error: ‘it’ does not name a type
auto it = s.lower_bound(b);
^
bizarre.cpp:29:7: error: ‘it’ was not declared in this scope
if (it == s.end()) e = 2000000000;
^
bizarre.cpp:13:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
bizarre.cpp:14:60: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (int i=0; i<n; i++) scanf("%d", &a[i]), s.insert(a[i]);
^
bizarre.cpp:15:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &m);
^