记录详情

Compile Error

/in/foo.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
/in/foo.cc:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:10:5: error: 'cin' was not declared in this scope
     cin >> n >> m;
     ^~~
/in/foo.cc:17: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:21:9: error: 'cout' was not declared in this scope
         cout << dp[n][m] / 2 << endl;
         ^~~~
/in/foo.cc:21:33: error: 'endl' was not declared in this scope
         cout << dp[n][m] / 2 << endl;
                                 ^~~~
/in/foo.cc:23:9: error: 'cout' was not declared in this scope
         cout << dp[n][m] << endl;
         ^~~~
/in/foo.cc:23:29: error: 'endl' was not declared in this scope
         cout << dp[n][m] << endl;
                             ^~~~
/in/foo.cc:11:9: warning: unused variable 'sum' [-Wunused-variable]
     int sum = 0;
         ^~~

信息

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