运行 ID: 142241

Main.cc:1:2: error: stray ‘#’ in program
 +#include
  ^
Main.cc:1:1: error: expected unqualified-id before ‘+’ token
 +#include
 ^
Main.cc: In function ‘int main()’:
Main.cc:7:2: error: ‘scanf’ was not declared in this scope
  scanf("%d%d",&m,&n);
  ^~~~~
Main.cc:13:10: error: ‘max’ was not declared in this scope
     f[j]=max(f[j-w]+c,f[j]);
          ^~~
Main.cc:13:10: note: suggested alternative: ‘main’
     f[j]=max(f[j-w]+c,f[j]);
          ^~~
          main
Main.cc:16:2: error: ‘printf’ was not declared in this scope
  printf("%d\n",f[m]);
  ^~~~~~
Main.cc:16:2: note: suggested alternative: ‘int’
  printf("%d\n",f[m]);
  ^~~~~~
  int