Problem | hacking |
---|---|
User | Kishan |
Submission Time | 2023-06-25 16:19:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
hacking.cpp: In function ‘int main()’:
hacking.cpp:37:25: error: request for member ‘push_back’ in ‘ans’, which is of non-class type ‘std::vector<int> [500005]’
37 | ans.push_back(z);
| ^~~~~~~~~
hacking.cpp:44:25: error: request for member ‘push_back’ in ‘ans’, which is of non-class type ‘std::vector<int> [500005]’
44 | ans.push_back(z);
| ^~~~~~~~~
hacking.cpp:49:43: error: request for member ‘size’ in ‘ans’, which is of non-class type ‘std::vector<int> [500005]’
49 | for (unsigned int i = 0; i < (int)ans.size(); i++)
| ^~~~
hacking.cpp:51:14: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<int>’)
51 | cout << ans[i] << "\n";
| ~~~~ ^~ ~~~~~~