fireworks.cpp: In member function 'void dpfunc::makereal(LL)':
fireworks.cpp:26:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pq.size()==-sta-1)break;
~~~~~~~~~^~~~~~~~
fireworks.cpp:27:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pq.size()==-sta)zeronum=pq.top();
~~~~~~~~~^~~~~~
fireworks.cpp:28:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pq.size()==-sta+1)onenum=pq.top();
~~~~~~~~~^~~~~~~~
fireworks.cpp: In function 'void get_dp(int)':
fireworks.cpp:51:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<link[num].size(); i++){
~^~~~~~~~~~~~~~~~~
fireworks.cpp:61:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1; i<link[num].size(); i++)
~^~~~~~~~~~~~~~~~~
fireworks.cpp: In function 'int main()':
fireworks.cpp:75:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(func[1].pq.size()==-func[1].sta)break;
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
fireworks.cpp:67:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~~
fireworks.cpp:70:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %lld", &k, &cost[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
fireworks.cpp: In function 'void get_dp(int)':
fireworks.cpp:59:51: warning: 'maxnum' may be used uninitialized in this function [-Wmaybe-uninitialized]
swap(func[link[num][0]], func[link[num][maxnum]]);
^