| Problem | vectorindexing |
|---|---|
| User | migueltanpe67 |
| Submission Time | 2026-06-24 10:03:32 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
vectorindexing.cpp: In function ‘int main()’:
vectorindexing.cpp:6:39: error: ‘N’ was not declared in this scope
6 | std::vector<int> numbers = {1, 2, N};
| ^
vectorindexing.cpp:6:40: error: could not convert ‘{1, 2, <expression error>}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<long long int>’
6 | std::vector<int> numbers = {1, 2, N};
| ^
| |
| <brace-enclosed initializer list>
vectorindexing.cpp:13:18: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
13 | numbers[1] = n; // Changes second element to 99
| ^
| yn
vectorindexing.cpp: At global scope:
vectorindexing.cpp:18:2: error: expected unq