/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:9:16: error: 'scanf' was not declared in this scope
  scanf("%ld",&n);
                ^
foo.cpp:19:77: error: 'printf' was not declared in this scope
  if (((a[1]-a[0]+n)%n==1) && ((a[2]-a[1]+n)%n==1)) printf("%s\n","JMcat Win");
                                                                             ^
foo.cpp:20:44: error: 'printf' was not declared in this scope
  else if (n%2==0) printf("%s\n","JMcat Win");
                                            ^
foo.cpp:21:29: error: 'printf' was not declared in this scope
  else printf("%s\n","PZ Win");
                             ^

信息

递交者
类型
递交
题目
P1152 肥猫的游戏
语言
C++
递交时间
2014-06-21 16:34:14
评测时间
2014-06-21 16:34:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes