Problem | xmas |
---|---|
User | hackerman123 |
Submission Time | 2023-02-08 23:37:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
xmas.cpp:5:52: error: redefinition of ‘std::pair<int, int> a’
5 | bool operator() (pair<int, int> a, pair<int, int> a=b){
| ~~~~~~~~~~~~~~~^~~
xmas.cpp:5:34: note: ‘std::pair<int, int> a’ previously declared here
5 | bool operator() (pair<int, int> a, pair<int, int> a=b){
| ~~~~~~~~~~~~~~~^
xmas.cpp:8:2: error: expected ‘;’ after struct definition
8 | }
| ^
| ;
xmas.cpp: In member function ‘bool cmp::operator()(std::pair<int, int>)’:
xmas.cpp:6:21: error: ‘b’ was not declared in this scope
6 | return a.second < b.second;
| ^
xmas.cpp: In function ‘int main()’:
xmas.cpp:13:26: error: expected ‘)’ before ‘;’ token
13 | if (int i = 1; i < n + 1;i++){
| ~ ^
| )
xmas.cpp:13:27: error: ‘i’ was not decl