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_17202125_1993.cpp:51:2: error: stray '#' in program
 }#include <iostream>
  ^
0_0_17202125_1993.cpp:51:3: error: 'include' does not name a type
 }#include <iostream>
   ^
0_0_17202125_1993.cpp: In function 'int main()':
0_0_17202125_1993.cpp:124:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_17202125_1993.cpp:17:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_17202125_1993.cpp:137:27: error: no matching function for call to 'sort(node*, node*, <unresolved overloaded function type>)'
         sort(a+1,a+n+1,cmp);
                           ^
0_0_17202125_1993.cpp:137:27: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_17202125_1993.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4676:5: note: template<class _RAIter> void std::sort(_RAIter, _RAIter)
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4676:5: note:   template argument deduction/substitution failed:
0_0_17202125_1993.cpp:137:27: note:   candidate expects 2 arguments, 3 provided
         sort(a+1,a+n+1,cmp);
                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_17202125_1993.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note:   template argument deduction/substitution failed:
0_0_17202125_1993.cpp:137:27: note:   couldn't deduce template parameter '_Compare'
         sort(a+1,a+n+1,cmp);
                           ^
0_0_17202125_1993.cpp: At global scope:
0_0_17202125_1993.cpp:55:14: error: expected unqualified-id before numeric constant
 #define maxn 100010
              ^
0_0_17202125_1993.cpp:154:11: note: in expansion of macro 'maxn'
 const int maxn = 207;
           ^
0_0_17202125_1993.cpp:159:8: error: conflicting declaration 'int t'
 int n, t, d1, d2, a, b;
        ^
0_0_17202125_1993.cpp:64:2: note: previous declaration as 'tree t [400040]'
 }t[maxn<<2];
  ^
0_0_17202125_1993.cpp:159:19: error: conflicting declaration 'int a'
 int n, t, d1, d2, a, b;
                   ^
0_0_17202125_1993.cpp:117:2: note: previous declaration as 'node a [100010]'
 }a[maxn];
  ^
0_0_17202125_1993.cpp: In function 'void dijk(int)':
0_0_17202125_1993.cpp:165:7: error: invalid types 'bool [100010][node [100010]]' for array subscript
  vis[a] = true;
       ^
0_0_17202125_1993.cpp:167:30: error: invalid types 'int [100010][100010][node [100010]]' for array subscript
   cost[flag][i] = map[flag][a][i];
                              ^
0_0_17202125_1993.cpp:171:25: error: invalid conversion from 'node*' to 'int' [-fpermissive]
   int min = inf, imin = a;
                         ^
0_0_17202125_1993.cpp: In function 'int main()':
0_0_17202125_1993.cpp:189:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_17202125_1993.cpp:17:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_17202125_1993.cpp:198:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   for (i=0; i<t; i++)
               ^
0_0_17202125_1993.cpp: At global scope:
0_0_17202125_1993.cpp:242:1: error: 'import' does not name a type
 import java.math.BigInteger;
 ^
0_0_17202125_1993.cpp:243:1: error: 'import' does not name a type
 import java.util.Scanner;
 ^
0_0_17202125_1993.cpp:245:1: error: expected unqualified-id before 'public'
 public class main {
 ^


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-07-07 07:28:02, Gzip enabled