historic.cpp: In function 'int main()':
historic.cpp:40:29: warning: left operand of comma operator has no effect [-Wunused-value]
lp(i,0,n) debug("%d " , b[i]) ;
^
historic.cpp:41:14: warning: statement has no effect [-Wunused-value]
debug("\n") ;
^
historic.cpp:42:38: warning: left operand of comma operator has no effect [-Wunused-value]
lp(i,0,qtdB+1) debug("%d %d\n",ini[i] , fim[i]) ;
^
historic.cpp:42:38: warning: right operand of comma operator has no effect [-Wunused-value]
lp(i,0,qtdB+1) debug("%d %d\n",ini[i] , fim[i]) ;
~~~~~^
historic.cpp:43:14: warning: statement has no effect [-Wunused-value]
debug("\n") ;
^
historic.cpp:26:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n , &q) ;
~~~~~^~~~~~~~~~~~~~~~~
historic.cpp:27:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
lp(i,0,n) scanf("%d", &a[i]) ;
~~~~~^~~~~~~~~~~~~
historic.cpp:61:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &l, &r ) ;
~~~~~^~~~~~~~~~~~~~~~~