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_28616394_31438.cpp:10:19: error: expected ',' or '...' before 'num'
 int con_max(int[] num, int len_num, int &a, int &b) {
                   ^
0_0_28616394_31438.cpp: In function 'int con_max(int*)':
0_0_28616394_31438.cpp:11:15: error: 'num' was not declared in this scope
     int rnt = num[0];
               ^
0_0_28616394_31438.cpp:13:24: error: 'len_num' was not declared in this scope
     for(int i = 1; i < len_num; ++i) {
                        ^
0_0_28616394_31438.cpp:17:13: error: 'b' was not declared in this scope
             b = i;
             ^
0_0_28616394_31438.cpp:21:13: error: 'a' was not declared in this scope
             a = lmin;
             ^
0_0_28616394_31438.cpp: In function 'int main()':
0_0_28616394_31438.cpp:32:5: error: 'i' was not declared in this scope
     i = 0;
     ^
0_0_28616394_31438.cpp:33:5: error: 'tag' was not declared in this scope
     tag = 0;
     ^
0_0_28616394_31438.cpp:40:58: error: too many arguments to function 'int con_max(int*)'
         int res = con_max(number, len_arr, bg_tag, ed_tag);
                                                          ^
0_0_28616394_31438.cpp:10:5: note: declared here
 int con_max(int[] num, int len_num, int &a, int &b) {
     ^


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-10-06 13:18:04, Gzip enabled