Problem itinerary
User YSH2020
Submission Time 2025-02-22 22:39:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

itinerary.cpp: In function ‘int main()’:
itinerary.cpp:75:25: error: ‘n’ was not declared in this scope
75 | for (int j = 0; j < n; j++) cout << 0 << '\n';
| ^
itinerary.cpp:84:25: error: ‘n’ was not declared in this scope
84 | for (int j = 0; j < n; j++) cout << 0 << '\n';
| ^
itinerary.cpp:90:22: error: ‘n’ was not declared in this scope
90 | for (int i = 0; i < n; i++) ans[i] = 0;
| ^
itinerary.cpp:92:22: error: ‘n’ was not declared in this scope
92 | for (int i = 0; i < n; i++) cout << ans[i] << '\n';
| ^