Problem | potatosalad |
---|---|
User | jovan |
Submission Time | 2025-07-04 11:35:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp:3:1: error: ‘vector’ does not name a type
3 | vector<long long> dat;
| ^~~~~~
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:5:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin >> N >> D;
| ^~~
| 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:8:3: error: ‘dat’ was not declared in this scope
8 | dat.push_back(temp);
| ^~~
potatosalad.cpp:10:7: error: ‘dat’ was not declared in this scope
10 | sort(dat.begin(),dat.end());
| ^~~
potatosalad.cpp:10:2: error: ‘sort’ was not declared in this scope; did you mean ‘std::sort’?
10 | sort(dat.begin(),dat.e