F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_30112904_31266\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_30112904_31266\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_30112904_31266\Main.java:5: 错误: 需要class, interface或enum
struct Point
^
0_0_30112904_31266\Main.java:8: 错误: 需要class, interface或enum
};
^
0_0_30112904_31266\Main.java:10: 错误: 需要class, interface或enum
Point solve(long long p1, long long q1, long long p2, long long q2)
^
0_0_30112904_31266\Main.java:13: 错误: 需要class, interface或enum
  if (a <= b)
  ^
0_0_30112904_31266\Main.java:15: 错误: 需要class, interface或enum
  if (p1 == 0)
  ^
0_0_30112904_31266\Main.java:17: 错误: 需要class, interface或enum
  if (p1 <= q1 && p2 <= q2)
  ^
0_0_30112904_31266\Main.java:20: 错误: 需要class, interface或enum
    swap(r.a, r.b);
    ^
0_0_30112904_31266\Main.java:21: 错误: 需要class, interface或enum
    return r;
    ^
0_0_30112904_31266\Main.java:22: 错误: 需要class, interface或enum
  }
  ^
0_0_30112904_31266\Main.java:24: 错误: 需要class, interface或enum
  Point r = solve(p1 % q1, q1, p2 - t * q2, q2);
  ^
0_0_30112904_31266\Main.java:25: 错误: 需要class, interface或enum
  r.a += r.b * t;
  ^
0_0_30112904_31266\Main.java:26: 错误: 需要class, interface或enum
  return r;
  ^
0_0_30112904_31266\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_30112904_31266\Main.java:31: 错误: 需要class, interface或enum
  scanf("%d", &T);
  ^
0_0_30112904_31266\Main.java:32: 错误: 需要class, interface或enum
  while (T--)
  ^
0_0_30112904_31266\Main.java:35: 错误: 需要class, interface或enum
    scanf("%lld%lld", &p, &x);
    ^
0_0_30112904_31266\Main.java:36: 错误: 需要class, interface或enum
    Point Ans = solve(x - 1, p, x, p);
    ^
0_0_30112904_31266\Main.java:37: 错误: 需要class, interface或enum
    printf("%lld/%lld\n", Ans.b * x % p, Ans.b);
    ^
0_0_30112904_31266\Main.java:38: 错误: 需要class, interface或enum
  }
  ^
21 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 13:49:09, Gzip enabled