답안 #164273

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
164273 2019-11-18T21:44:57 Z daddy0h 최댓값 (tutorial2) C++11
컴파일 오류
0 ms 0 KB
/// https://oj.uz/problem/view/tutorial2

#include <bits/stdc++.h>

using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int tN;
    cin >> tN;

    int t_max = -987654321;
    for(int id=0; id<tN; ++id)
    {
        int tmp;
        cin >> tmp;
        if(tmp > t_max) t_max = tmp;
    }

    cout << t_max; 
  
    return 0;
}

Compilation message

/tmp/cc6voZDx.o: In function `main':
tutorial2.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccBUUhww.o:grader.cpp:(.text.startup+0x0): first defined here
/tmp/ccBUUhww.o: In function `main':
grader.cpp:(.text.startup+0x97): undefined reference to `GetMax(int, int*)'
collect2: error: ld returned 1 exit status