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_34372562_27837\Main.java:1: 错误: 非法字符: '#'
 #include<iostream>
 ^
0_0_34372562_27837\Main.java:1: 错误: 需要class, interface或enum
 #include<iostream>
         ^
0_0_34372562_27837\Main.java:2: 错误: 非法字符: '#'
 #include<stdio.h>
 ^
0_0_34372562_27837\Main.java:3: 错误: 非法字符: '#'
 #include<cstring>
 ^
0_0_34372562_27837\Main.java:4: 错误: 非法字符: '#'
  #include<cstdlib>
  ^
0_0_34372562_27837\Main.java:5: 错误: 非法字符: '#'
 #include<vector>
 ^
0_0_34372562_27837\Main.java:7: 错误: 需要class, interface或enum
  typedef __int64 LL;
  ^
0_0_34372562_27837\Main.java:8: 错误: 需要class, interface或enum
  vector<LL> dp[10000];
  ^
0_0_34372562_27837\Main.java:9: 错误: 需要class, interface或enum
 bool s[10001];
 ^
0_0_34372562_27837\Main.java:10: 错误: 需要class, interface或enum
void init()
^
0_0_34372562_27837\Main.java:12: 错误: 需要class, interface或enum
   LL i,p,j;   memset(s,false,sizeof(s));
               ^
0_0_34372562_27837\Main.java:13: 错误: 需要class, interface或enum
 for(i=2;i<=10000;i++){
 ^
0_0_34372562_27837\Main.java:13: 错误: 需要class, interface或enum
 for(i=2;i<=10000;i++){
         ^
0_0_34372562_27837\Main.java:13: 错误: 需要class, interface或enum
 for(i=2;i<=10000;i++){
                  ^
0_0_34372562_27837\Main.java:15: 错误: 需要class, interface或enum
  for(j=i*2;j<=10000;j=j+i)
            ^
0_0_34372562_27837\Main.java:15: 错误: 需要class, interface或enum
  for(j=i*2;j<=10000;j=j+i)
                     ^
0_0_34372562_27837\Main.java:17: 错误: 需要class, interface或enum
   }
   ^
0_0_34372562_27837\Main.java:19: 错误: 需要class, interface或enum
  for(i=0;i<10000;i++) dp[i].clear();
  ^
0_0_34372562_27837\Main.java:19: 错误: 需要class, interface或enum
  for(i=0;i<10000;i++) dp[i].clear();
          ^
0_0_34372562_27837\Main.java:19: 错误: 需要class, interface或enum
  for(i=0;i<10000;i++) dp[i].clear();
                  ^
0_0_34372562_27837\Main.java:20: 错误: 需要class, interface或enum
    for(p=1;p<10000;p++)
    ^
0_0_34372562_27837\Main.java:20: 错误: 需要class, interface或enum
    for(p=1;p<10000;p++)
            ^
0_0_34372562_27837\Main.java:20: 错误: 需要class, interface或enum
    for(p=1;p<10000;p++)
                    ^
0_0_34372562_27837\Main.java:23: 错误: 需要class, interface或enum
        dp[p].push_back(1);
        ^
0_0_34372562_27837\Main.java:24: 错误: 需要class, interface或enum
     for(i=1;i<=p;i++)       {
     ^
0_0_34372562_27837\Main.java:24: 错误: 需要class, interface或enum
     for(i=1;i<=p;i++)       {
             ^
0_0_34372562_27837\Main.java:24: 错误: 需要class, interface或enum
     for(i=1;i<=p;i++)       {
                  ^
0_0_34372562_27837\Main.java:26: 错误: 需要class, interface或enum
        }
        ^
0_0_34372562_27837\Main.java:32: 错误: 需要class, interface或enum
   while(n){
   ^
0_0_34372562_27837\Main.java:34: 错误: 需要class, interface或enum
      n=n>>1;
      ^
0_0_34372562_27837\Main.java:35: 错误: 需要class, interface或enum
       a=(a*a)%p;
       ^
0_0_34372562_27837\Main.java:36: 错误: 需要class, interface或enum
   }
   ^
0_0_34372562_27837\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_34372562_27837\Main.java:42: 错误: 需要class, interface或enum
    if(a==b) return 1;
    ^
0_0_34372562_27837\Main.java:43: 错误: 需要class, interface或enum
    if(b>a-b) b=a-b;
    ^
0_0_34372562_27837\Main.java:44: 错误: 需要class, interface或enum
    LL sum1,sum2;
    ^
0_0_34372562_27837\Main.java:45: 错误: 需要class, interface或enum
    sum1=dp[p][a];
    ^
0_0_34372562_27837\Main.java:46: 错误: 需要class, interface或enum
    sum2=(dp[p][b]*dp[p][a-b])%p;
    ^
0_0_34372562_27837\Main.java:47: 错误: 需要class, interface或enum
    LL ans=(sum1*pow_mod(sum2,p-2,p))%p;
    ^
0_0_34372562_27837\Main.java:48: 错误: 需要class, interface或enum
     return ans;
     ^
0_0_34372562_27837\Main.java:49: 错误: 需要class, interface或enum
 }
 ^
0_0_34372562_27837\Main.java:52: 错误: 需要class, interface或enum
  while(n&&m&&p){
  ^
0_0_34372562_27837\Main.java:54: 错误: 需要class, interface或enum
    n=n/p;
    ^
0_0_34372562_27837\Main.java:55: 错误: 需要class, interface或enum
       m=m/p;
       ^
0_0_34372562_27837\Main.java:56: 错误: 需要class, interface或enum
   }
   ^
0_0_34372562_27837\Main.java:58: 错误: 需要class, interface或enum
 }
 ^
0_0_34372562_27837\Main.java:62: 错误: 需要class, interface或enum
   LL n,k,p;
   ^
0_0_34372562_27837\Main.java:63: 错误: 需要class, interface或enum
   int t=0;
   ^
0_0_34372562_27837\Main.java:64: 错误: 需要class, interface或enum
     while(scanf("%I64d%I64d%I64d",&n,&k,&p)>0){
     ^
0_0_34372562_27837\Main.java:66: 错误: 需要class, interface或enum
         if(k>n-k) k=n-k;
         ^
0_0_34372562_27837\Main.java:67: 错误: 需要class, interface或enum
    LL ans=Lucas(n+1,k,p);
    ^
0_0_34372562_27837\Main.java:68: 错误: 需要class, interface或enum
         printf("%I64d\n",(ans+(n-k))%p);
         ^
0_0_34372562_27837\Main.java:69: 错误: 需要class, interface或enum
    }
    ^
0_0_34372562_27837\Main.java:71: 错误: 需要class, interface或enum
 }
 ^
54 个错误


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-16 12:40:01, Gzip enabled