Problem | scalars |
---|---|
User | jovan |
Submission Time | 2025-06-28 19:37:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
scalars.cpp:2:1: error: ‘vector’ does not name a type
2 | vector<int> num1;
| ^~~~~~
scalars.cpp:3:1: error: ‘vector’ does not name a type
3 | vector<int> num2;
| ^~~~~~
scalars.cpp: In function ‘int main()’:
scalars.cpp:6:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from scalars.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
scalars.cpp:9:3: error: ‘num1’ was not declared in this scope
9 | num1.push_back(dat);
| ^~~~
scalars.cpp:13:3: error: ‘num2’ was not declared in this scope
13 | num2.push_back(dat);
| ^~~~
scalars.cpp:15:7: error: ‘num1’ was not declared in this scope