| Problem | lostarray |
|---|---|
| User | TK |
| Submission Time | 2026-07-19 20:57:56 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lostarray.cpp: In function ‘int main()’:
lostarray.cpp:9:33: error: expected ‘;’ before ‘vector’
9 | cin >> elements >> questions
| ^
| ;
10 | vector<int> reconstructed_array(elements + 1, 1);
| ~~~~~~
lostarray.cpp:14:2: error: ‘reconstructed_array’ was not declared in this scope
14 | reconstructed_array[first_position] = max(reconstructed_array[first_position],minimum_value);
| ^~~~~~~~~~~~~~~~~~~
lostarray.cpp:18:11: error: ‘reconstructed_array’ was not declared in this scope
18 | cout << reconstructed_array[i]
| ^~~~~~~~~~~~~~~~~~~