Problem | gift |
---|---|
User | Nathaniel |
Submission Time | 2025-03-24 17:19:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gift.cpp: In function ‘int main()’:
gift.cpp:6:5: error: ‘vector’ was not declared in this scope
6 | vector<int> array;
| ^~~~~~
gift.cpp:6:12: error: expected primary-expression before ‘int’
6 | vector<int> array;
| ^~~
gift.cpp:9:5: error: ‘cin’ was not declared in this scope
9 | cin >> a >> timing;
| ^~~
gift.cpp:12:9: error: ‘array’ was not declared in this scope
12 | array.push_back(b);
| ^~~~~
gift.cpp:16:13: error: ‘array’ was not declared in this scope
16 | if (array[i] - array[i+1] >= timing) {
| ^~~~~
gift.cpp:22:5: error: ‘cout’ was not declared in this scope
22 | cout << gift << endl;
| ^~~~
gift.cpp:22:21: error: ‘endl’ was not declared in this scope
22 | cout << gift << endl;
| ^~~~