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_14561546_13917.cpp: In function 'long long int power(long long int, int, long long int)':
0_0_14561546_13917.cpp:8:51: error: 'll' was not declared in this scope
 long long power(long long a,int b,long long mod) {ll res=1;a%=mod;for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
                                                   ^
0_0_14561546_13917.cpp:8:88: error: 'res' was not declared in this scope
 long long power(long long a,int b,long long mod) {ll res=1;a%=mod;for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
                                                                                        ^
0_0_14561546_13917.cpp:8:120: error: 'res' was not declared in this scope
 long long power(long long a,int b,long long mod) {ll res=1;a%=mod;for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
                                                                                                                        ^


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 14:55:15, Gzip enabled