Submission #744874

#TimeUsernameProblemLanguageResultExecution timeMemory
744874jjcoderRainforest Jumps (APIO21_jumps)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include <cstdio> using namespace std; int main() { //setIO("input"); int n,h; cin>>n>>h; vector<int> a(n); for(int i=0; i<n; i++){ cin>>a[i]; } while(h--) { int A,B,C,D; cin>>A>>B>>C>>D; cout << C-B <<endl; } return 0; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccO2pKZ3.o: in function `main':
stub.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccTVXTC1.o:jumps.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccO2pKZ3.o: in function `main':
stub.cpp:(.text.startup+0x177): undefined reference to `init(int, std::vector<int, std::allocator<int> >)'
/usr/bin/ld: stub.cpp:(.text.startup+0x1d1): undefined reference to `minimum_jumps(int, int, int, int)'
collect2: error: ld returned 1 exit status