foo.cc: In function 'int main()':
foo.cc:21:7: error: expected ';' before 'g1'
time g1(a[0],a[1],a[2]);
^~
foo.cc:21:25: warning: statement is a reference, not call, to function 'time' [-Waddress]
time g1(a[0],a[1],a[2]);
^
foo.cc:21:25: warning: statement has no effect [-Wunused-value]
foo.cc:23:7: error: expected ';' before 'g2'
time g2(b[0],b[1],b[2]);
^~
foo.cc:23:25: warning: statement is a reference, not call, to function 'time' [-Waddress]
time g2(b[0],b[1],b[2]);
^
foo.cc:23:25: warning: statement has no effect [-Wunused-value]
foo.cc:24:10: error: 'g1' was not declared in this scope
int ans=g1.minus(g2);
^~
foo.cc:24:19: error: 'g2' was not declared in this scope
int ans=g1.minus(g2);
^~
foo.cc:20:6: warning: unused variable 'a' [-Wunused-variable]
int a[3]={23,32,30}; //cin>>a[0]>>a[1]>>a[2];
^
foo.cc:22:6: warning: unused variable 'b' [-Wunused-variable]
int b[3]={23,31,30}; //cin>>b[0]>>b[1]>>b[2];
^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。