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_33317350_2702.cpp:19:1: error: stray '\243' in program
 int cur,tot£»//µ±Ç°Ä¿Â¼
 ^
0_0_33317350_2702.cpp:19:1: error: stray '\273' in program
0_0_33317350_2702.cpp:18:1: error: expected ';' after struct definition
 }
 ^
0_0_33317350_2702.cpp: In member function 'int node::F(int, int, int, int, std::string)':
0_0_33317350_2702.cpp:16:4: error: only constructors take member initializers
    head(h), next(n), type(t), fa(f), name(s) {
    ^
0_0_33317350_2702.cpp: At global scope:
0_0_33317350_2702.cpp:20:1: error: expected initializer before 'vector'
 vector<node> V; 
 ^
0_0_33317350_2702.cpp: In function 'void cd(const char*)':
0_0_33317350_2702.cpp:26:9: error: 'V' was not declared in this scope
   cur = V[cur].fa;
         ^
0_0_33317350_2702.cpp:28:12: error: 'V' was not declared in this scope
   for (i = V[cur].head; i > 0; i = V[i].next) 
            ^
0_0_33317350_2702.cpp:31:5: error: break statement not within loop or switch
     break;
     ^
0_0_33317350_2702.cpp: In function 'void create(const char*, int)':
0_0_33317350_2702.cpp:40:12: error: 'V' was not declared in this scope
   for (i = V[cur].head; i > 0; i = V[i].next) {
            ^
0_0_33317350_2702.cpp:46:4: error: 'V' was not declared in this scope
    V.push_back(node(0, V[cur].head, type, cur, com));
    ^
0_0_33317350_2702.cpp:47:18: error: 'tot' was not declared in this scope
    V[cur].head = tot++;
                  ^
0_0_33317350_2702.cpp: In function 'void del(const char*, int)':
0_0_33317350_2702.cpp:57:13: error: 'V' was not declared in this scope
   int *p = &V[cur].head;
             ^
0_0_33317350_2702.cpp: In function 'int main()':
0_0_33317350_2702.cpp:74:2: error: 'V' was not declared in this scope
  V.push_back(node(0, 0, DIR, 0, "\\"));
  ^
0_0_33317350_2702.cpp:74:37: error: no matching function for call to 'node::node(int, int, const int&, int, const char [2])'
  V.push_back(node(0, 0, DIR, 0, "\\"));
                                     ^
0_0_33317350_2702.cpp:74:37: note: candidates are:
0_0_33317350_2702.cpp:10:8: note: node::node()
 struct node{
        ^
0_0_33317350_2702.cpp:10:8: note:   candidate expects 0 arguments, 5 provided
0_0_33317350_2702.cpp:10:8: note: node::node(const node&)
0_0_33317350_2702.cpp:10:8: note:   candidate expects 1 argument, 5 provided
0_0_33317350_2702.cpp:10:8: note: node::node(node&&)
0_0_33317350_2702.cpp:10:8: note:   candidate expects 1 argument, 5 provided
0_0_33317350_2702.cpp:75:4: error: 'tot' was not declared in this scope
  ++tot;
    ^


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-17 09:58:48, Gzip enabled