Submission #1052549

#TimeUsernameProblemLanguageResultExecution timeMemory
1052549EnzoMountains (IOI17_mountains)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n; int cont = 1; cin>>n; int a[n]; for(int i = 0; i < n; i++){ cin>>a[i]; } for(int i = 1; i < n-1; i++){ if(a[i] > a[i+1]){ cont++; } } cout<<cont; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccUjyeh3.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccdRUm24.o:mountains.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccUjyeh3.o: in function `main':
grader.cpp:(.text.startup+0x238): undefined reference to `maximum_deevs(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status