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_36987896_17100.cpp:26:1: error: stray '\243' in program
 vector<int> ModifyGroup(string str,vector<int> a, int &begin1, int &end1) //去除头1、尾1之后按降序排序
 ^
0_0_36987896_17100.cpp:26:1: error: stray '\254' in program
0_0_36987896_17100.cpp:42:1: error: stray '\243' in program
 int MaxNumof1(vector<int> a, int begin1, int end1, int cutCnt)
 ^
0_0_36987896_17100.cpp:42:1: error: stray '\254' in program
0_0_36987896_17100.cpp:89:3: error: stray '\243' in program
   a = ModifyGroup(str,a, begin1, end1);
   ^
0_0_36987896_17100.cpp:89:3: error: stray '\254' in program
0_0_36987896_17100.cpp:26:37: error: expected ',' or '...' before 'vector'
 vector<int> ModifyGroup(string str,vector<int> a, int &begin1, int &end1) //去除头1、尾1之后按降序排序
                                     ^
0_0_36987896_17100.cpp: In function 'std::vector<int> ModifyGroup(std::string)':
0_0_36987896_17100.cpp:29:9: error: 'begin1' was not declared in this scope
         begin1 = a[0];
         ^
0_0_36987896_17100.cpp:29:18: error: 'a' was not declared in this scope
         begin1 = a[0];
                  ^
0_0_36987896_17100.cpp:34:9: error: 'end1' was not declared in this scope
         end1 = a[a.size() - 1];
         ^
0_0_36987896_17100.cpp:34:16: error: 'a' was not declared in this scope
         end1 = a[a.size() - 1];
                ^
0_0_36987896_17100.cpp:38:7: error: 'a' was not declared in this scope
  sort(a.begin(), a.end(), greater<int>());//降序排序
       ^
0_0_36987896_17100.cpp: At global scope:
0_0_36987896_17100.cpp:42:31: error: expected ',' or '...' before 'int'
 int MaxNumof1(vector<int> a, int begin1, int end1, int cutCnt)
                               ^
0_0_36987896_17100.cpp: In function 'int MaxNumof1(std::vector<int>)':
0_0_36987896_17100.cpp:44:9: error: 'cutCnt' was not declared in this scope
     if (cutCnt == 0) {
         ^
0_0_36987896_17100.cpp:45:16: error: 'begin1' was not declared in this scope
         return begin1;
                ^
0_0_36987896_17100.cpp:50:30: error: 'cutCnt' was not declared in this scope
     if ((a.size() - 2) * 2 < cutCnt) { 
                              ^
0_0_36987896_17100.cpp:54:16: error: 'begin1' was not declared in this scope
         sum += begin1;
                ^
0_0_36987896_17100.cpp:55:16: error: 'end1' was not declared in this scope
         sum += end1;
                ^
0_0_36987896_17100.cpp:60:9: error: 'cutCnt' was not declared in this scope
     if (cutCnt % 2 == 0) {
         ^
0_0_36987896_17100.cpp:65:16: error: 'begin1' was not declared in this scope
         sum += begin1 + end1 + a[cutCnt / 2 - 1];
                ^
0_0_36987896_17100.cpp:65:25: error: 'end1' was not declared in this scope
         sum += begin1 + end1 + a[cutCnt / 2 - 1];
                         ^
0_0_36987896_17100.cpp:73:14: error: 'begin1' was not declared in this scope
   sum += max(begin1 + end1, a[cutCnt / 2]);
              ^
0_0_36987896_17100.cpp:73:23: error: 'end1' was not declared in this scope
   sum += max(begin1 + end1, a[cutCnt / 2]);
                       ^
0_0_36987896_17100.cpp: In function 'int main()':
0_0_36987896_17100.cpp:89:24: error: expected ')' before 'a'
   a = ModifyGroup(str,a, begin1, end1);
                        ^
0_0_36987896_17100.cpp:89:39: error: too many arguments to function 'std::vector<int> ModifyGroup(std::string)'
   a = ModifyGroup(str,a, begin1, end1);
                                       ^
0_0_36987896_17100.cpp:26:13: note: declared here
 vector<int> ModifyGroup(string str,vector<int> a, int &begin1, int &end1) //去除头1、尾1之后按降序排序
             ^
0_0_36987896_17100.cpp:90:50: error: too many arguments to function 'int MaxNumof1(std::vector<int>)'
         cout << MaxNumof1(a, begin1, end1, cutCnt) << endl;
                                                  ^
0_0_36987896_17100.cpp:42:5: note: declared here
 int MaxNumof1(vector<int> a, int begin1, int end1, int cutCnt)
     ^


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-09-28 20:17:01, Gzip enabled