记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:8:22: warning: right operand of comma operator has no effect [-Wunused-value]
    8 |         dp[2][0]=5,dp;[2][1]=2;
      |                      ^
foo.cc:8:24: error: expected identifier before numeric constant
    8 |         dp[2][0]=5,dp;[2][1]=2;
      |                        ^
foo.cc: In lambda function:
foo.cc:8:26: error: expected '{' before '[' token
    8 |         dp[2][0]=5,dp;[2][1]=2;
      |                          ^
foo.cc: In function 'int main()':
foo.cc:8:26: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
foo.cc:11:18: error: 'i' was not declared in this scope
   11 |         cout<<dp[i][0]<<" "<<dp[i][1];
      |                  ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1500 Problem B. ぱぴぷぴぷぴぱ!
比赛
2023秋 苏州青少年科技馆(吴江计算机协会)CSP-J/S模拟赛(2)
语言
C++
递交时间
2023-10-09 20:58:55
评测时间
2023-10-09 20:58:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes