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_27059429_23808.cpp: In function 'long long int cv(long long int, long long int)':
0_0_27059429_23808.cpp:7:21: error: too few arguments to function 'long long int cv(long long int, long long int)'
     return (cv(n-x-1)+m*x)%(n-x);
                     ^
0_0_27059429_23808.cpp:3:11: note: declared here
 long long cv(long long n,long long m){
           ^
0_0_27059429_23808.cpp: At global scope:
0_0_27059429_23808.cpp:10:5: error: expected primary-expression before 'long'
     long long n,m;
     ^
0_0_27059429_23808.cpp:10:5: error: expected '}' before 'long'
0_0_27059429_23808.cpp:10:5: error: expected ',' or ';' before 'long'
0_0_27059429_23808.cpp:11:5: error: expected unqualified-id before 'while'
     while(cin>>n>>m){
     ^
0_0_27059429_23808.cpp:14:5: error: expected unqualified-id before 'return'
     return 0;
     ^
0_0_27059429_23808.cpp:15:1: error: expected declaration before '}' token
 }
 ^


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-26 13:38:53, Gzip enabled