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_26078005_20128\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_26078005_20128\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_26078005_20128\Main.java:3: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_26078005_20128\Main.java:4: 错误: 需要class, interface或enum
const int N = (int)1e6 + 10;
^
0_0_26078005_20128\Main.java:6: 错误: 需要class, interface或enum
int A, B; ll n, p;
^
0_0_26078005_20128\Main.java:6: 错误: 需要class, interface或enum
int A, B; ll n, p;
          ^
0_0_26078005_20128\Main.java:7: 错误: 需要class, interface或enum
int tot, prim[N], pre[N]; bool ok[N];
^
0_0_26078005_20128\Main.java:7: 错误: 需要class, interface或enum
int tot, prim[N], pre[N]; bool ok[N];
                          ^
0_0_26078005_20128\Main.java:9: 错误: 需要class, interface或enum
ll pw(ll x, ll k){
^
0_0_26078005_20128\Main.java:11: 错误: 需要class, interface或enum
	while (k){
	^
0_0_26078005_20128\Main.java:13: 错误: 需要class, interface或enum
		x = x * x % p;
		^
0_0_26078005_20128\Main.java:14: 错误: 需要class, interface或enum
		k >>= 1;
		^
0_0_26078005_20128\Main.java:15: 错误: 需要class, interface或enum
	}
	^
0_0_26078005_20128\Main.java:17: 错误: 需要class, interface或enum
}
^
0_0_26078005_20128\Main.java:21: 错误: 需要class, interface或enum
	Num(){}
	^
0_0_26078005_20128\Main.java:22: 错误: 需要class, interface或enum
	Num(ll _, ll __){a = _; b = __;}
	                        ^
0_0_26078005_20128\Main.java:22: 错误: 需要class, interface或enum
	Num(ll _, ll __){a = _; b = __;}
	                               ^
0_0_26078005_20128\Main.java:25: 错误: 需要class, interface或enum
		tmp.b = (_.b * a % p + b * _.a % p) % p;
		^
0_0_26078005_20128\Main.java:26: 错误: 需要class, interface或enum
		tmp.a = (a * _.a % p + b * _.b % p * B % p) % p;
		^
0_0_26078005_20128\Main.java:27: 错误: 需要class, interface或enum
		return tmp;
		^
0_0_26078005_20128\Main.java:28: 错误: 需要class, interface或enum
	}
	^
0_0_26078005_20128\Main.java:31: 错误: 需要class, interface或enum
		tmp.b = (b + _.b) % p;
		^
0_0_26078005_20128\Main.java:32: 错误: 需要class, interface或enum
		tmp.a = (a + _.a) % p;
		^
0_0_26078005_20128\Main.java:33: 错误: 需要class, interface或enum
		return tmp;
		^
0_0_26078005_20128\Main.java:34: 错误: 需要class, interface或enum
	}
	^
0_0_26078005_20128\Main.java:37: 错误: 需要class, interface或enum
		tmp.b = (b - _.b) % p;
		^
0_0_26078005_20128\Main.java:38: 错误: 需要class, interface或enum
		tmp.a = (a - _.a) % p;
		^
0_0_26078005_20128\Main.java:39: 错误: 需要class, interface或enum
		return tmp;
		^
0_0_26078005_20128\Main.java:40: 错误: 需要class, interface或enum
	}
	^
0_0_26078005_20128\Main.java:43: 错误: 需要class, interface或enum
Num pw(Num x, ll k){
^
0_0_26078005_20128\Main.java:45: 错误: 需要class, interface或enum
	while (k){
	^
0_0_26078005_20128\Main.java:47: 错误: 需要class, interface或enum
		x = x * x;
		^
0_0_26078005_20128\Main.java:48: 错误: 需要class, interface或enum
		k >>= 1;
		^
0_0_26078005_20128\Main.java:49: 错误: 需要class, interface或enum
	}
	^
0_0_26078005_20128\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_26078005_20128\Main.java:56: 错误: 需要class, interface或enum
	for (int i = 2; i < N; i ++){
	                ^
0_0_26078005_20128\Main.java:56: 错误: 需要class, interface或enum
	for (int i = 2; i < N; i ++){
	                       ^
0_0_26078005_20128\Main.java:58: 错误: 需要class, interface或enum
		for (int j = 1; j <= tot; j ++){
		^
0_0_26078005_20128\Main.java:58: 错误: 需要class, interface或enum
		for (int j = 1; j <= tot; j ++){
		                ^
0_0_26078005_20128\Main.java:58: 错误: 需要class, interface或enum
		for (int j = 1; j <= tot; j ++){
		                          ^
0_0_26078005_20128\Main.java:60: 错误: 需要class, interface或enum
			ok[i * prim[j]] = 1;
			^
0_0_26078005_20128\Main.java:61: 错误: 需要class, interface或enum
			pre[i * prim[j]] = prim[j];
			^
0_0_26078005_20128\Main.java:62: 错误: 需要class, interface或enum
			if (i % prim[j] == 0) break;
			^
0_0_26078005_20128\Main.java:63: 错误: 需要class, interface或enum
		}
		^
0_0_26078005_20128\Main.java:66: 错误: 需要class, interface或enum
	int T; scanf("%d", &T);
	       ^
0_0_26078005_20128\Main.java:67: 错误: 需要class, interface或enum
	for (int cas = 1; cas <= T; cas ++){
	^
0_0_26078005_20128\Main.java:67: 错误: 需要class, interface或enum
	for (int cas = 1; cas <= T; cas ++){
	                  ^
0_0_26078005_20128\Main.java:67: 错误: 需要class, interface或enum
	for (int cas = 1; cas <= T; cas ++){
	                            ^
0_0_26078005_20128\Main.java:70: 错误: 需要class, interface或enum
		ll x = B, a = 1, b = 1;
		^
0_0_26078005_20128\Main.java:71: 错误: 需要class, interface或enum
		while (x){
		^
0_0_26078005_20128\Main.java:72: 错误: 需要class, interface或enum
			if (!ok[x]) {b *= x; break;}
			                     ^
0_0_26078005_20128\Main.java:72: 错误: 需要class, interface或enum
			if (!ok[x]) {b *= x; break;}
			                           ^
0_0_26078005_20128\Main.java:74: 错误: 需要class, interface或enum
			while (x % q == 0) x /= q, tim ++;
			^
0_0_26078005_20128\Main.java:75: 错误: 需要class, interface或enum
			a *= pw(q, tim / 2);
			^
0_0_26078005_20128\Main.java:76: 错误: 需要class, interface或enum
			if (tim & 1) b *= q;
			^
0_0_26078005_20128\Main.java:77: 错误: 需要class, interface或enum
		}
		^
0_0_26078005_20128\Main.java:81: 错误: 需要class, interface或enum
		Num ret1 = pw(Num(A, a), n);
		^
0_0_26078005_20128\Main.java:92: 错误: 需要class, interface或enum
		printf("1 %lld %d\n", ret1.b, B);
		^
0_0_26078005_20128\Main.java:93: 错误: 需要class, interface或enum
	}
	^
0_0_26078005_20128\Main.java:96: 错误: 需要class, interface或enum
}
^
60 个错误


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-22 17:12:22, Gzip enabled