cook.cpp: In function 'int main()':
cook.cpp:66:41: warning: integer overflow in expression [-Woverflow]
for(j=0;j<3;j++) mindp[i][j]=inf*inf;
~~~^~~~
cook.cpp:66:42: error: no match for 'operator=' (operand types are 'DATA' and 'int')
for(j=0;j<3;j++) mindp[i][j]=inf*inf;
^~~
cook.cpp:8:8: note: candidate: constexpr DATA& DATA::operator=(const DATA&)
struct DATA{
^~~~
cook.cpp:8:8: note: no known conversion for argument 1 from 'int' to 'const DATA&'
cook.cpp:8:8: note: candidate: constexpr DATA& DATA::operator=(DATA&&)
cook.cpp:8:8: note: no known conversion for argument 1 from 'int' to 'DATA&&'
cook.cpp: In function 'int getmin(int, int)':
cook.cpp:20:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cook.cpp: In function 'int main()':
cook.cpp:46:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d %d", &n, &m, &row, &limit, &change);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cook.cpp:56:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&ina);
~~~~~^~~~~~~~~~~
cook.cpp:63:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++) scanf("%d", &cant[i]);
~~~~~^~~~~~~~~~~~~~~~