0_0_35076954_30914.cpp:1:1: error: 'include' does not name a type
include<bits/stdc++.h>
^
0_0_35076954_30914.cpp: In function 'int main()':
0_0_35076954_30914.cpp:11:8: error: 'cin' was not declared in this scope
while(cin>>n){
^
0_0_35076954_30914.cpp:26:25: error: 'memset' was not declared in this scope
memset(dp,0,sizeof(dp));
^
0_0_35076954_30914.cpp:29:52: error: 'max' was not declared in this scope
dp[j]=max(dp[j],dp[j-food[i].kll]+food[i].happy);
^
0_0_35076954_30914.cpp:32:3: error: 'cout' was not declared in this scope
cout<<dp[hot]<<endl;
^
0_0_35076954_30914.cpp:32:18: error: 'endl' was not declared in this scope
cout<<dp[hot]<<endl;
^
|