0_0_39745441_16781.cpp: In function 'void dfs(int, int, int)':
0_0_39745441_16781.cpp:21:30: error: 'abs' was not declared in this scope
21 | if(((t - sum) & 1) != ((abs(x- ex) + abs(y -ey)) & 1)) return;
| ^~~
0_0_39745441_16781.cpp:23:18: error: 'abs' was not declared in this scope
23 | if(t - sum < abs(x - ex) + abs(y - ey)) return;
| ^~~
0_0_39745441_16781.cpp: In function 'int main()':
0_0_39745441_16781.cpp:40:10: error: 'std::ios' has not been declared
40 | std::ios::sync_with_stdio(false);
| ^~~
0_0_39745441_16781.cpp:41:10: error: 'cin' is not a member of 'std'
41 | std::cin.tie(nullptr);
| ^~~
0_0_39745441_16781.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 | //n是行,m是列,t是时间限制,sx,sy是起点,ex,ey是终点
0_0_39745441_16781.cpp:43:11: error: 'cin' was not declared in this scope
43 | while(cin >> n >> m >> t)
| ^~~
0_0_39745441_16781.cpp:66:22: error: 'abs' was not declared in this scope
66 | int mindis = abs(sx - ex) + abs(sy - ey);
| ^~~
0_0_39745441_16781.cpp:69:13: error: 'cout' was not declared in this scope
69 | cout << "NO" << endl;
| ^~~~
0_0_39745441_16781.cpp:69:29: error: 'endl' was not declared in this scope
69 | cout << "NO" << endl;
| ^~~~
0_0_39745441_16781.cpp:74:18: error: 'cout' was not declared in this scope
74 | if(flag) cout << "YES" << endl;
| ^~~~
0_0_39745441_16781.cpp:74:35: error: 'endl' was not declared in this scope
74 | if(flag) cout << "YES" << endl;
| ^~~~
0_0_39745441_16781.cpp:75:14: error: 'cout' was not declared in this scope
75 | else cout << "NO" << endl;
| ^~~~
0_0_39745441_16781.cpp:75:30: error: 'endl' was not declared in this scope
75 | else cout << "NO" << endl;
| ^~~~
|