foo.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include
| ^
foo.cc:2:10: error: #include expects "FILENAME" or <FILENAME>
2 | #include
| ^
foo.cc: In function 'int main()':
foo.cc:10:5: error: 'cin' was not declared in this scope
10 | cin >> n >> m;
| ^~~
foo.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 | #include
foo.cc:17:47: error: 'abs' was not declared in this scope
17 | dp[i][j] = dp[i-1][j+i] + dp[i-1][abs(j-i)];
| ^~~
foo.cc:21:9: error: 'cout' was not declared in this scope
21 | cout << dp[n][m] / 2 << endl;
| ^~~~
foo.cc:21:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:21:33: error: 'endl' was not declared in this scope
21 | cout << dp[n][m] / 2 << endl;
| ^~~~
foo.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
+++ |+#include <ostream>
1 | #include
foo.cc:23:9: error: 'cout' was not declared in this scope
23 | cout << dp[n][m] << endl;
| ^~~~
foo.cc:23:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:23:29: error: 'endl' was not declared in this scope
23 | cout << dp[n][m] << endl;
| ^~~~
foo.cc:23:29: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
foo.cc:11:9: warning: unused variable 'sum' [-Wunused-variable]
11 | int sum = 0;
| ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务