답안 #1052549

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1052549 2024-08-10T16:04:20 Z Enzo Mountains (IOI17_mountains) C++17
컴파일 오류
0 ms 0 KB
#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

/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