Problem | potatosalad |
---|---|
User | NoobMugger420 |
Submission Time | 2024-10-31 20:19:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:6:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> N >> D;
| ^~~
| std::cin
In file included 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:13:9: error: request for member ‘begin’ in ‘M’, which is of non-class type ‘int [N]’
13 | sort(M.begin(), M.end());
| ^~~~~
potatosalad.cpp:13:20: error: request for member ‘end’ in ‘M’, which is of non-class type ‘int [N]’
13 | sort(M.begin(), M.end());
| ^~~
potatosalad.cpp:13:2: error: ‘sort’ was not declared in this scope; did you mean ‘std::sort’?
13 | sort(M.begin(), M.end());
| ^~~~
| std::sort
In file included from /usr/include/c++/9/algorithm:71,