Problem simp
User P0lterg3ist
Submission Time 2024-07-08 17:05:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

simp.cpp: In function ‘int main()’:
simp.cpp:1:73: error: ‘cin’ was not declared in this scope
1 | using namespace std; int main() { short size, kai[2], pave[2], goal[2]; cin >> size >> kai[0] >> kai[1] >> pave[0] >> pave[1] >> goal[0] >> goal[1]; if (kai[0] == goal[0] || kai[1] == goal[1] || ((kai[0] - 1 == goal[0] || kai[0] + 1 == goal[0]) && (kai[1] - 1 == goal[1] || kai[1] + 1 == goal[1])) || (pave[0] <= kai[0] && goal[0] >= kai[0]) || (pave[0] >= kai[0] && goal[0] <= kai[0]) || (pave[1] <= kai[1] && goal[1] >= kai[1]) || (pave[1] >= kai[1] && goal[1] <= kai[1])) { cout << "NO"; } else { cout << "YES"; } }
| ^~~
simp.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std; int main() { sho