运行 ID: 142359

Main.cc: In function ‘int main()’:
Main.cc:8:2: error: expected ‘;’ before ‘for’
  for ( int i = 1 ; i <= m ; i ++ )
  ^~~
Main.cc:8:20: error: ‘i’ was not declared in this scope
  for ( int i = 1 ; i <= m ; i ++ )
                    ^
Main.cc:16:4: error: ‘f’ was not declared in this scope
    f [i] [j] = f [i - 1] [j] ;
    ^
Main.cc:17:16: error: ‘a’ was not declared in this scope
    if ( ( j >= a [i] ) && ( f [i] [j] < f [i - 1] [j - a [i]] + b [i] ) )
                ^
Main.cc:17:65: error: ‘b’ was not declared in this scope
    if ( ( j >= a [i] ) && ( f [i] [j] < f [i - 1] [j - a [i]] + b [i] ) )
                                                                 ^
Main.cc:23:10: error: ‘f’ was not declared in this scope
  cout << f [m] [t] << endl ;
          ^