stove.cpp: In function 'int main()':
stove.cpp:19:6: error: 'span_7' was not declared in this scope
19 | [span_7](start_span)// Read N (number of guests) and K (number of matches)[span_7](end_span)
| ^~~~~~
stove.cpp:19:14: error: 'start_span' has not been declared
19 | [span_7](start_span)// Read N (number of guests) and K (number of matches)[span_7](end_span)
| ^~~~~~~~~~
stove.cpp: In lambda function:
stove.cpp:20:5: error: expected '{' before 'if'
20 | if (!(cin >> N >> K)) return 0;
| ^~
stove.cpp: In function 'int main()':
stove.cpp:19:25: error: expected ';' before 'if'
19 | [span_7](start_span)// Read N (number of guests) and K (number of matches)[span_7](end_span)
| ^
| ;
20 | if (!(cin >> N >> K)) return 0;
| ~~
stove.cpp:24:10: error: 'span_8' was not declared in this scope
24 | [span_8](start_span)// Read arrival time T_i for each guest[span_8](end_span)
| ^~~~~~
stove.cpp:24:18: error: 'start_span' has not been declared
24 | [span_8](start_span)// Read arrival time T_i for each guest[span_8](end_span)
| ^~~~~~~~~~
stove.cpp: In lambda function:
stove.cpp:25:9: error: expected '{' before 'cin'
25 | cin >> T[i];
| ^~~
stove.cpp: In function 'int main()':
stove.cpp:24:29: error: expected ';' before 'cin'
24 | [span_8](start_span)// Read arrival time T_i for each guest[span_8](end_span)
| ^
| ;
25 | cin >> T[i];
| ~~~
stove.cpp:29:6: error: 'span_9' was not declared in this scope
29 | [span_9](start_span)// Each guest stays from T_i to T_i + 1[span_9](end_span).
| ^~~~~~
stove.cpp:29:14: error: 'start_span' has not been declared
29 | [span_9](start_span)// Each guest stays from T_i to T_i + 1[span_9](end_span).
| ^~~~~~~~~~
stove.cpp: In lambda function:
stove.cpp:31:5: error: expected '{' before '[' token
31 | [span_10](start_span)// the total time is exactly N minutes[span_10](end_span).
| ^
stove.cpp: In function 'int main()':
stove.cpp:31:6: error: 'span_10' was not declared in this scope
31 | [span_10](start_span)// the total time is exactly N minutes[span_10](end_span).
| ^~~~~~~
stove.cpp:31:15: error: 'start_span' was not declared in this scope
31 | [span_10](start_span)// the total time is exactly N minutes[span_10](end_span).
| ^~~~~~~~~~
stove.cpp:47:6: error: 'span_11' was not declared in this scope
47 | [span_11](start_span)// Staying on during a gap "saves" one match[span_11](end_span).
| ^~~~~~~
stove.cpp:47:15: error: 'start_span' is not a type
47 | [span_11](start_span)// Staying on during a gap "saves" one match[span_11](end_span).
| ^~~~~~~~~~
stove.cpp: In lambda function:
stove.cpp:48:5: error: expected '{' before 'sort'
48 | sort(gaps.begin(), gaps.end());
| ^~~~
stove.cpp: In function 'int main()':
stove.cpp:47:26: error: expected ';' before 'sort'
47 | [span_11](start_span)// Staying on during a gap "saves" one match[span_11](end_span).
| ^
| ;
48 | sort(gaps.begin(), gaps.end());
| ~~~~
stove.cpp:57:9: error: 'total_time' was not declared in this scope; did you mean 'localtime'?
57 | total_time += gaps[i];
| ^~~~~~~~~~
| localtime
stove.cpp:60:6: error: 'span_12' was not declared in this scope
60 | [span_12](start_span)// Output the minimum total operating time[span_12](end_span).
| ^~~~~~~
stove.cpp:60:15: error: 'start_span' is not a type
60 | [span_12](start_span)// Output the minimum total operating time[span_12](end_span).
| ^~~~~~~~~~
stove.cpp: In lambda function:
stove.cpp:61:5: error: expected '{' before 'cout'
61 | cout << total_time << endl;
| ^~~~
stove.cpp: In function 'int main()':
stove.cpp:60:26: error: expected ';' before 'cout'
60 | [span_12](start_span)// Output the minimum total operating time[span_12](end_span).
| ^
| ;
61 | cout << total_time << endl;
| ~~~~