skyline.cpp:43:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
43 | main(){
| ^
skyline.cpp: In function 'int main()':
skyline.cpp:44:11: warning: unused variable 'j' [-Wunused-variable]
44 | int i,j;
| ^
skyline.cpp:11:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | #define scan1(a) scanf("%lld",&a);
| ~~~~~^~~~~~~~~~~
skyline.cpp:45:5: note: in expansion of macro 'scan1'
45 | scan1(n)
| ^~~~~
skyline.cpp:11:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | #define scan1(a) scanf("%lld",&a);
| ~~~~~^~~~~~~~~~~
skyline.cpp:47:9: note: in expansion of macro 'scan1'
47 | scan1(q[i])
| ^~~~~