Problem | deforestation |
---|---|
User | Potato3218 |
Submission Time | 2023-11-27 17:54:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
deforestation.cpp: In function ‘int main()’:
deforestation.cpp:74:9: error: ‘a’ was not declared in this scope
74 | a = readInt();
| ^
deforestation.cpp:75:3: error: ‘b’ was not declared in this scope
75 | b = readInt();
| ^
deforestation.cpp:76:26: error: no matching function for call to ‘std::vector<std::pair<long long int, long long int> >::push_back(<brace-enclosed initializer list>)’
76 | v.push_back({a,b});
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from deforestation.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1184:7: note: candidate: ‘void std::vector