How do I remove this error while drawing a graph

  1. variable-sized object may not be initialized
    Float_t ex[n] = {.05,.1,.07,.07,.04,.05,.06,.07,.08,.05};

  2. use of undeclared identifier 'gr’
    gr->SetTitle(“TGraphErrors Example”);

ROOT User’s Guide -> Graphs
Tutorials -> Graphs tutorials

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.