제출 #446525

#제출 시각아이디문제언어결과실행 시간메모리
446525mansur밀림 점프 (APIO21_jumps)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; #pragma optimize ("g",on) #pragma GCC optimize ("Ofast") #pragma GCC optimize ("unroll-loops") #pragma GCC optimize ("03") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,avx2,mmx,fma,avx,tune=native") #define all(a) a.begin(),a.end() #define ll long long #define pb push_back #define nl '\n' #define popb pop_back() #define sz size() #define ld long double #define ull unsigned long long #define F first #define S second #define fix fixed<<setprecision #define pii pair<int,int> #define E exit (0) #define int long long const int inf=1e18,N=2e5,mod=1e9+7; int n, h[N + 1]; void init(int nn, vector<int> a) { n = nn; for (int i = 0; i < n; i++) h[i] = a[i]; } int minimum_jumps(int a, int b, int c, int d) { return c - b; }

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

jumps.cpp:3: warning: ignoring '#pragma optimize ' [-Wunknown-pragmas]
    3 | #pragma optimize ("g",on)
      | 
/usr/bin/ld: /tmp/ccIJIoU4.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