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

Compile Error

simp.cpp: In function ‘int main()’:
simp.cpp:2:52: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
2 | 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"; } }
| ^~~
| std::cin
In file included from simp.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked t