제출 #1128380

#제출 시각아이디문제언어결과실행 시간메모리
1128380MunkhErdeneA + B (IOI24_aplusb)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #define ll long long using namespace std; #define no cout<<"NO\n" #define yes cout<<"YES\n" const ll MOD=1e9+7; const ll N=2e5+5; /*void solve(){ ll a, b, c, d, e, g, h, x, y, z, r, l, t, o, p, i, j, k, q, w, s, u, v, n, m; ll cnt=0, ans=0, sum=0; string ug,ug1,ug2; char useg='a'; bool bval=1,bval1=0; cin>>n; ll arr[n]; for(auto& x: arr) cin>>x; for(i=0; i<n; i++){ if(i==0){ if(arr[i]==0){ for(j=0; j<n; j++){} } } } } int main(){ ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); ll testCase=1; cin>>testCase; while(testCase--){ solve(); } }*/ ll sum(ll a, ll b){ return a + b; }

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

/usr/bin/ld: /tmp/ccyCcHpl.o: in function `main':
grader.cpp:(.text.startup+0x160): undefined reference to `sum(int, int)'
collect2: error: ld returned 1 exit status