记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:5: error: 'cin' was not declared in this scope
     cin >> n >> m;
     ^~~
/in/foo.cc:16:54: error: 'abs' was not declared in this scope
             dp[i][j] = dp[i-1][j+i] + dp[i-1][abs(j-i)];
                                                      ^
/in/foo.cc:20:9: error: 'cout' was not declared in this scope
         cout << dp[n][m] / 2 << endl;
         ^~~~
/in/foo.cc:20:33: error: 'endl' was not declared in this scope
         cout << dp[n][m] / 2 << endl;
                                 ^~~~
/in/foo.cc:22:9: error: 'cout' was not declared in this scope
         cout << dp[n][m] << endl;
         ^~~~
/in/foo.cc:22:29: error: 'endl' was not declared in this scope
         cout << dp[n][m] << endl;
                             ^~~~
/in/foo.cc:8:9: warning: unused variable 'sum' [-Wunused-variable]
     int sum = 0;
         ^~~

信息

递交者
类型
递交
题目
P1010 [蓝桥杯省赛 2021 中级组] 求和比较
语言
C++
递交时间
2024-08-08 14:51:01
评测时间
2024-08-08 14:51:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes