运行 ID: 602
Main.cc: In function ‘int main()’:
Main.cc:5:13: error: ‘t’ was not declared in this scope
if(a>b) t=a;
^
Main.cc:6:7: error: ‘t’ was not declared in this scope
else t=b;
^
Main.cc:7:8: error: ‘t’ was not declared in this scope
if(t>c) t=t;
^
Main.cc:9:8: error: expected primary-expression before ‘)’ token
if()
^
Main.cc:3:12: warning: unused variable ‘d’ [-Wunused-variable]
int a,b,c,d;
^
Main.cc:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&a,&b,&c);
~~~~~^~~~~~~~~~~~~~~~~~~~~