Problem | xmas |
---|---|
User | PlayVoltz |
Submission Time | 2023-04-30 13:27:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
xmas.cpp: In function ‘int main()’:
xmas.cpp:5:2: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | n, num;
| ^
| yn
xmas.cpp:5:5: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
5 | n, num;
| ^~~
| enum
xmas.cpp:7:17: error: expected ‘;’ before ‘<’ token
7 | for (int i=1, i<n+1; i++){
| ^
| ;
xmas.cpp:7:17: error: expected primary-expression before ‘<’ token
xmas.cpp:9:14: error: class template argument deduction failed:
9 | map[num] = i;
| ^
xmas.cpp:9:14: error: no matching function for call to ‘map(int&)’
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from xmas.cpp:1:
/usr/include/c++/9/bits/stl_map.h:1416:5: note: candidate: ‘template<class _InputIterator, class _C