/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:28:54: error: expected ')' before '{' token
         if(((a>=11)&&(a>=d+2)) || ((d>=11)&&(d>=a+2)){
                                                      ^
foo.cc:32:5: error: expected primary-expression before '}' token
     }
     ^
foo.cc:44:54: error: expected ')' before '{' token
         if(((a>=21)&&(a>=d+2)) || ((d>=21)&&(d>=a+2)){
                                                      ^
foo.cc:48:5: error: expected primary-expression before '}' token
     }
     ^
foo.cc:11:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%c",&x);
     ~~~~~^~~~~~~~~
foo.cc:16:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%c",&x);
         ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C++
递交时间
2021-08-06 09:52:43
评测时间
2021-08-06 09:52:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes