baloni.cpp: In function 'int main()':
baloni.cpp:29:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<A.size(); i++)
~^~~~~~~~~
baloni.cpp:41:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<A.size(); i++)
~^~~~~~~~~
baloni.cpp:16:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&N); assert(N < MAX_N);
~~~~~^~~~~~~~~
baloni.cpp:19:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&A[i]);
~~~~~^~~~~~~~~~~~