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


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-29 20:05:03, Gzip enabled