Ignore:
Timestamp:
Jun 16, 2006, 7:31:49 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
543931e9b94b51dfcb076b90134259291fd4bde5
Parents:
db1fa735ecf3d44ab99e9d5ba0e77c249138d14e
Message:
*hannes: solaris/cc port


git-svn-id: file:///usr/local/Singular/svn/trunk@9228 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • IntegerProgramming/IP_algorithms.cc

    rdb1fa7 r2a94d3  
    30813081    }
    30823082
    3083     Integer right_hand[weighted_variables+elimination_variables];
     3083    Integer *right_hand=new Integer[weighted_variables+elimination_variables];
    30843084
    30853085    for(short k=0;k<instances;k++)
     
    31023102            "first input \nfile, "
    31033103            "this and all following right hand vectors will be ignored"<<endl;
     3104          delete[] right_hand;
    31043105          return 0;
    31053106        }
     
    31703171      output<<"computation time"<<endl;
    31713172      output<<setw(6)<<setprecision(2)<<elapsed<<" sec"<<endl<<endl;
     3173      delete[] right_hand;
    31723174    }
    31733175  }
     
    31873189      }
    31883190
    3189       Integer right_hand[weighted_variables+elimination_variables];
     3191      Integer *right_hand=new Integer[weighted_variables+elimination_variables];
    31903192      BOOLEAN error=FALSE;    // to test legality of right hand vectors
    31913193
     
    32093211              "first input \nfile, this and all following right hand vectors "
    32103212              "will be ignored"<<endl;
     3213            delete[] right_hand;
    32113214            return 0;
    32123215          }
     
    32773280        output<<"computation time"<<endl;
    32783281        output<<setw(6)<<setprecision(2)<<elapsed<<" sec"<<endl<<endl;
     3282        delete[] right_hand;
    32793283      }
    32803284    }
     
    33093313              "first input \nfile, this and all following right hand vectors "
    33103314              "will be ignored"<<endl;
     3315            delete[] right_hand;
    33113316            return 0;
    33123317          }
     
    33493354    }
    33503355
     3356  delete[] right_hand;
    33513357  return 1;
    33523358
Note: See TracChangeset for help on using the changeset viewer.