← Back to Challenge List

Submission #99208

上傳編號99208
上傳時間2020-05-21 23:58:09
題目 The Triangle A (測試題)
使用者 anonymous
總得分 0, CE in 0 ms
# State Runtime Memory
0 CE 0 ms 0
1 CE 0 ms 0
2 CE 0 ms 0
3 CE 0 ms 0
Judge Information
./test.cpp: In function 'int main()':
./test.cpp:5:33: warning: format '%lf' expects argument of type 'double*', but argument 2 has type 'long double*' [-Wformat=]
scanf("%lf %lf %lf",&a,&b,&c);
^
./test.cpp:5:33: warning: format '%lf' expects argument of type 'double*', but argument 3 has type 'long double*' [-Wformat=]
./test.cpp:5:33: warning: format '%lf' expects argument of type 'double*', but argument 4 has type 'long double*' [-Wformat=]
./test.cpp:6:24: error: expression cannot be used as a function
printf("%.4f\n"(a+c)*b/2);
^
./test.cpp:5:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf %lf %lf",&a,&b,&c);
^