Submission #4095

# Submission time Handle Problem Language Result Execution time Memory
4095 2013-09-01T03:02:14 Z gs13068 카드 (tutorial6) C++
Compilation error
0 ms 0 KB
#include"jeehak.h"

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

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

Compilation message

friends.cpp: In function 'void friends(int*, int, int*, int*)':
friends.cpp:5:11: error: 'i' was not declared in this scope
friends.cpp:5:7: warning: unused variable 't' [-Wunused-variable]
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]