답안 #4101

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
4101 2013-09-01T09:10:21 Z gs13105 카드 (tutorial6) C++
컴파일 오류
0 ms 0 KB
#include "jeehak.h"

inline void jeehak(int A[])
{
	int s=(A[1]+A[2]+A[3]+A[4]+A[5])%10;
	send(s%5+1,s>4);
}
#include "friends.h"

inline int friends(int A[],int N,int X[],int Y[])
{
	guess(((X[1]+5*Y[1]-2-A[1]-A[2]-A[3]-A[4]-A[5])%10+10)%10);
}

Compilation message

/tmp/ccwraUcU.o: In function `main':
grader_jeehak.c:(.text.startup+0x12a): undefined reference to `jeehak(int*)'
collect2: ld returned 1 exit status

friends.cpp: In function 'int friends(int*, int, int*, int*)':
friends.cpp:6:1: warning: no return statement in function returning non-void [-Wreturn-type]
grader_friends.c: In function 'int main()':
grader_friends.c:46:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
grader_friends.c:52:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
grader_friends.c:53:68: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
grader_friends.c: At global scope:
grader_friends.c:18:12: warning: '__now__' defined but not used [-Wunused-variable]
/tmp/ccWZyl7c.o: In function `main':
grader_friends.c:(.text.startup+0x253): undefined reference to `friends(int*, int, int*, int*)'
collect2: ld returned 1 exit status