#include #include #include #include #include using namespace std; const char *argv0; void usage(){ cerr<<"Usage: "< data; bool warned=false; double total=0; string word; while(true){ cin>>word; double v; if(!cin)break; const char *start=word.c_str(); char *endp; v=strtod(start,&endp); if(endp!=start+word.size()||!isfinite(v)){ if(!warned){ warned=true; cerr<<"Warning: invalid floating-point values detected"<