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_25549956_16926.cpp: In function 'int main()':
0_0_25549956_16926.cpp:31:28: error: no matching function for call to 'std::vector<node>::size(int)'
         for(int i=v.size(-1),j=1;i>=0,j++;i--){
                            ^
0_0_25549956_16926.cpp:31:28: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
                 from 0_0_25549956_16926.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:654:7: note: std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = node; _Alloc = std::allocator<node>; std::vector<_Tp, _Alloc>::size_type = long long unsigned int]
       size() const _GLIBCXX_NOEXCEPT
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:654:7: note:   candidate expects 0 arguments, 1 provided
0_0_25549956_16926.cpp:31:39: error: 'j' was not declared in this scope
         for(int i=v.size(-1),j=1;i>=0,j++;i--){
                                       ^
0_0_25549956_16926.cpp:33:51: error: 'tx' was not declared in this scope
                 printf("%ds:FIGHT AT (%d,%d)\n",j,tx,ty);
                                                   ^
0_0_25549956_16926.cpp:33:54: error: 'ty' was not declared in this scope
                 printf("%ds:FIGHT AT (%d,%d)\n",j,tx,ty);
                                                      ^
0_0_25549956_16926.cpp:35:51: error: 'tx' was not declared in this scope
                 printf("%ds:(%d,%d)->(%d,%d)\n",j,tx,ty,v[i].x,v[i].y);
                                                   ^
0_0_25549956_16926.cpp:35:54: error: 'ty' was not declared in this scope
                 printf("%ds:(%d,%d)->(%d,%d)\n",j,tx,ty,v[i].x,v[i].y);
                                                      ^


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-29 20:26:08, Gzip enabled