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_31553306_22522.cpp: In function 'int main()':
0_0_31553306_22522.cpp:13:15: error: too many arguments to function 'long long int f1(int)'
   sum=f1(n1,n2);
               ^
0_0_31553306_22522.cpp:8:6: note: declared here
  ll  f1(int x);
      ^
0_0_31553306_22522.cpp:15:3: error: expected ';' before 'if'
   if(z==1)sum=1;
   ^
0_0_31553306_22522.cpp: At global scope:
0_0_31553306_22522.cpp:23:14: error: 'x2' has not been declared
 ll f1(int x1,x2)
              ^
0_0_31553306_22522.cpp: In function 'long long int f1(int, int)':
0_0_31553306_22522.cpp:29:15: error: 'x2' was not declared in this scope
  for( i=4; i<(x2-x1); i++)
               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 05:42:51, Gzip enabled