记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:14: error: expected primary-expression before ';' token
     string s[;
              ^
foo.cc:7:14: error: expected ']' before ';' token
foo.cc:10:9: error: 's' was not declared in this scope
         s+=c;
         ^
foo.cc:14:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         if(a>=11&&a-b>=2||b>=11&&b-a>=2) {cout<<a<<':'<<b<<endl;a=0;b=0;}
            ~~~~~^~~~~~~~
foo.cc:17:16: error: 's' was not declared in this scope
     for(auto x:s)
                ^
foo.cc:22:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         if(a>=21&&a-b>=2||b>=21&&b-a>=2) {cout<<a<<':'<<b<<endl;a=0;b=0;}
            ~~~~~^~~~~~~~

信息

递交者
类型
递交
题目
P1156 乒乓球
语言
C++
递交时间
2021-02-03 19:33:12
评测时间
2021-02-03 19:33:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes