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_10937587_27374.cpp: In function `int Dis(const std::vector<int, std::allocator<int> >&, int)':
0_0_10937587_27374.cpp:22: error: ISO C++ forbids declaration of `it' with no type
0_0_10937587_27374.cpp:22: error: cannot convert `__gnu_cxx::__normal_iterator<const int*, std::vector<int, std::allocator<int> > >' to `int' in initialization
0_0_10937587_27374.cpp:22: error: no match for 'operator!=' in 'it != (+v)->std::vector<_Tp, _Alloc>::end [with _Tp = int, _Alloc = std::allocator<int>]()'
0_0_10937587_27374.cpp:23: error: invalid type argument of `unary *'
0_0_10937587_27374.cpp: In function `int main()':
0_0_10937587_27374.cpp:33: error: ISO C++ forbids declaration of `i' with no type
0_0_10937587_27374.cpp:39: error: ISO C++ forbids declaration of `i' with no type
0_0_10937587_27374.cpp:43: error: ISO C++ forbids declaration of `i' with no type
0_0_10937587_27374.cpp:44: error: ISO C++ forbids declaration of `i' with no type
0_0_10937587_27374.cpp:46: error: ISO C++ forbids declaration of `j' with no type


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 22:19:55, Gzip enabled