fireworks.cpp: In member function 'void dpfunc::makereal(LL)':
fireworks.cpp:33:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pq.size()==-sta-1)break;
~~~~~~~~~^~~~~~~~
fireworks.cpp:34:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pq.size()==-sta)zeronum=pq.top();
~~~~~~~~~^~~~~~
fireworks.cpp:35: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:62:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<link[num].size(); i++){
~^~~~~~~~~~~~~~~~~
fireworks.cpp:72: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:88:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(func[1].pq.size()==-func[1].sta)break;
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
fireworks.cpp:80: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:83: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:70:51: warning: 'maxnum' may be used uninitialized in this function [-Wmaybe-uninitialized]
swap(func[link[num][0]], func[link[num][maxnum]]);
^