제출 #403401

#제출 시각아이디문제언어결과실행 시간메모리
403401CursedCodeBoat (APIO16_boat)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; long long a[1000]; long long dp[1000] = {0}; long long boat(int n){ dp[1] = 1; a[n + 1] = 1000000000; for(int i = 1;i <= n + 1;i++){ for(int j = i - 1;j >= 1;j--){ if(a[j] < a[i]) dp[i] += dp[j]; } dp[i] += 1; } return dp[n + 1] - 1; }

컴파일 시 표준 에러 (stderr) 메시지

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status