vector split_string(string x); void plot_Leakcurrent_errors(){ string line; ifstream fin("outERROR"); vector s; while(getline(fin,line)) s.push_back(line); vector ss; int number; for(auto x: s) { //cout< split_string(string x){ vector ss; int c; while((c = x.find_first_of(" \t")) != string::npos){ if(c>0) ss.push_back(x.substr(0,c)); for (int i=c;i>=0;i--) x.erase(i,1); } ss.push_back(x); return ss; }