Problem simplebridges
User cookiemonster735
Submission Time 2026-05-18 18:59:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

simplebridges.cpp: In function ‘int main()’:
simplebridges.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin >> N >> K >> S >> E;
| ^~~
simplebridges.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
simplebridges.cpp:6:19: error: ‘abs’ was not declared in this scope
6 | long long diff = abs(S-E);
| ^~~
simplebridges.cpp:8:3: error: ‘cout’ was not declared in this scope
8 | cout << "No";
| ^~~~
simplebridges.cpp:8:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
simplebridges.cpp:11:3: error: ‘cout’ was not declared in this scope
11 | cout << "Yes";
| ^~~~
simplebridges.cpp:11:3: note: ‘std::cout’ is defined in header ‘<iostream>’; d