Problem itinerary
User JerryCodebreaker
Submission Time 2026-02-20 10:50:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

itinerary.cpp: In function ‘int main()’:
itinerary.cpp:7:25: error: ‘m’ was not declared in this scope
7 | for (int i = 0; i + 1 < m; i++) {
| ^
itinerary.cpp:8:9: error: ‘s’ was not declared in this scope
8 | if (s[i] != 1 && s[i+1] != 1) {
| ^
itinerary.cpp:14:22: error: ‘n’ was not declared in this scope
14 | for (int i = 1; i <= n; i++){
| ^