Submission #896027

#TimeUsernameProblemLanguageResultExecution timeMemory
896027wilspLightning Rod (NOI18_lightningrod)C++17
Compilation error
0 ms0 KiB
#include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; vector<pair<int,int>> coords; for(int i = 0; i<n; i++) { int x,y; cin >> x >> y; coords.pushback(make_pair(x,y)); } cout << n; return 0; }

Compilation message (stderr)

lightningrod.cpp: In function 'int main()':
lightningrod.cpp:17:14: error: 'class std::vector<std::pair<int, int> >' has no member named 'pushback'; did you mean 'push_back'?
   17 |       coords.pushback(make_pair(x,y));
      |              ^~~~~~~~
      |              push_back