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_29013284_7726.cpp: In function 'void solve(int, int*, int*, int*)':
0_0_29013284_7726.cpp:11:13: error: two or more data types in declaration of 'type name'
  vector<int int> vec; 
             ^
0_0_29013284_7726.cpp:11:16: error: template argument 1 is invalid
  vector<int int> vec; 
                ^
0_0_29013284_7726.cpp:11:16: error: template argument 2 is invalid
0_0_29013284_7726.cpp:11:21: error: invalid type in declaration before ';' token
  vector<int int> vec; 
                     ^
0_0_29013284_7726.cpp:16:9: error: request for member 'push_back' in 'vec', which is of non-class type 'int'
     vec.push_back(val); 
         ^
0_0_29013284_7726.cpp:20:13: error: request for member 'begin' in 'vec', which is of non-class type 'int'
    sort(vec.begin(), vec.end()); 
             ^
0_0_29013284_7726.cpp:20:26: error: request for member 'end' in 'vec', which is of non-class type 'int'
    sort(vec.begin(), vec.end()); 
                          ^
0_0_29013284_7726.cpp:23:25: error: invalid types 'int[int]' for array subscript
     res = (res + vec[l++]) % 1000000007; 
                         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-27 23:55:02, Gzip enabled