| Problem | potatosalad |
|---|---|
| User | luisvigo |
| Submission Time | 2026-10-26 16:00:49 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
potatosalad.cpp:3:7: error: expected nested-name-specifier before ‘namepspace’
3 | using namepspace std;
| ^~~~~~~~~~
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:6:12: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | int n, k; cin >> n >> k;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from potatosalad.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
potatosalad.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector <int> vec(n);
| ^~~~~~
potatosalad.cpp:7:2: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr