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_38918498_21060.cpp: In function 'int main()':
0_0_38918498_21060.cpp:24:20: error: too few arguments to function 'int read(int&)'
   24 |         cin >> read();
      |                ~~~~^~
0_0_38918498_21060.cpp:7:5: note: declared here
    7 | int read(int &n){
      |     ^~~~
0_0_38918498_21060.cpp:26:25: error: too few arguments to function 'int read(int&)'
   26 |                 n = read();
      |                     ~~~~^~
0_0_38918498_21060.cpp:7:5: note: declared here
    7 | int read(int &n){
      |     ^~~~
0_0_38918498_21060.cpp:27:25: error: too few arguments to function 'int read(int&)'
   27 |                 s = read();
      |                     ~~~~^~
0_0_38918498_21060.cpp:7:5: note: declared here
    7 | int read(int &n){
      |     ^~~~
0_0_38918498_21060.cpp:29:55: error: too few arguments to function 'int read(int&)'
   29 |                 for(int i = 1; i < n; i++) a[i] = read();
      |                                                   ~~~~^~
0_0_38918498_21060.cpp:7:5: note: declared here
    7 | int read(int &n){
      |     ^~~~


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-23 06:54:26, Gzip enabled