Problem | xmas |
---|---|
User | Priyankha13 |
Submission Time | 2023-11-08 13:39:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
xmas.cpp: In function ‘int main()’:
xmas.cpp:8:27: error: invalid declarator before ‘xmas’
8 | vector pair<int, int> xmas;
| ^~~~
xmas.cpp:12:9: error: ‘xmas’ was not declared in this scope
12 | xmas.push_back(make_pair(i+1, x));
| ^~~~
xmas.cpp:15:10: error: ‘xmas’ was not declared in this scope
15 | sort(xmas.begin().first, xmas.end().first);
| ^~~~
xmas.cpp:18:24: error: request for member ‘second’ in ‘j’, which is of non-class type ‘long long int’
18 | cout << xmas[j.second] << " ";
| ^~~~~~