运行 ID: 142118

Main.cc:3:13: error: expected initializer before ‘-’ token
 const int N -le3 + 10;
             ^
Main.cc:4:11: error: ‘N’ was not declared in this scope
 int m,n,f[N][N],w[N],c[N];
           ^
Main.cc:4:14: error: ‘N’ was not declared in this scope
 int m,n,f[N][N],w[N],c[N];
              ^
Main.cc:4:19: error: ‘N’ was not declared in this scope
 int m,n,f[N][N],w[N],c[N];
                   ^
Main.cc:4:24: error: ‘N’ was not declared in this scope
 int m,n,f[N][N],w[N],c[N];
                        ^
Main.cc: In function ‘int main()’:
Main.cc:10:8: error: ‘w’ was not declared in this scope
   cin>>w[i]>>c[i];
        ^
Main.cc:10:14: error: ‘c’ was not declared in this scope
   cin>>w[i]>>c[i];
              ^
Main.cc:14:12: error: expected ‘;’ before ‘-’ token
   for(int j-m;j>=0;j--)
            ^
Main.cc:14:16: warning: for increment expression has no effect [-Wunused-value]
   for(int j-m;j>=0;j--)
               ~^~~
Main.cc:14:19: error: expected ‘)’ before ‘;’ token
   for(int j-m;j>=0;j--)
                   ^
Main.cc:14:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
   for(int j-m;j>=0;j--)
   ^~~
Main.cc:14:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
   for(int j-m;j>=0;j--)
                    ^
Main.cc:14:20: error: ‘j’ was not declared in this scope
Main.cc:23:8: error: ‘f’ was not declared in this scope
  cout<