Problem | doll_noi |
---|---|
User | RandomCtfNoob |
Submission Time | 2025-02-10 15:39:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
doll_noi.cpp: In function ‘int main()’:
doll_noi.cpp:5:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin >> n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from doll_noi.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
doll_noi.cpp:12:8: error: request for member ‘sort’ in ‘size’, which is of non-class type ‘int [n]’
12 | size.sort(size.begin(),size.begin+n);
| ^~~~
doll_noi.cpp:12:18: error: request for member ‘begin’ in ‘size’, which is of non-class type ‘int [n]’
12 | size.sort(size.begin(),size.begin+n);
| ^~~~~
doll_noi.cpp:12:31: error: request for member ‘begin’ in ‘size’, which is of non-class type ‘int [n]’
12 | size.sort(size.begin(),size.begin+n