Problem | towers_noi |
---|---|
User | nguyendinhanh1508 |
Submission Time | 2025-03-11 23:14:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
towers_noi.cpp: In function ‘void solve()’:
towers_noi.cpp:86:30: error: no ‘operator++(int)’ declared for postfix ‘++’ [-fpermissive]
86 | x[p[j].first]++;
towers_noi.cpp:87:31: error: no ‘operator++(int)’ declared for postfix ‘++’ [-fpermissive]
87 | y[p[j].second]++;
towers_noi.cpp:90:43: error: no match for ‘operator>’ (operand types are ‘std::vector<long long int>’ and ‘int’)
90 | for(auto it : x) if(it.second > 2) valid = false;
| ~~~~~~~~~ ^ ~
| | |
| | int
| std::vector<long long int>
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from towers_noi.cpp:37:
/usr/include/c++/9/bits/regex.h:1081:5: note: