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_38645010_15086.cpp: In function 'void insert(const char*, int)':
0_0_38645010_15086.cpp:8:8: error: 'nex' was not declared in this scope
   if (!nex[p][c]) nex[p][c] = ++cnt; // 如果没有,就添加结点
        ^~~
0_0_38645010_15086.cpp:8:8: note: suggested alternative: 'onexit'
   if (!nex[p][c]) nex[p][c] = ++cnt; // 如果没有,就添加结点
        ^~~
        onexit
0_0_38645010_15086.cpp:8:33: error: 'cnt' was not declared in this scope
   if (!nex[p][c]) nex[p][c] = ++cnt; // 如果没有,就添加结点
                                 ^~~
0_0_38645010_15086.cpp:8:33: note: suggested alternative: 'int'
   if (!nex[p][c]) nex[p][c] = ++cnt; // 如果没有,就添加结点
                                 ^~~
                                 int
0_0_38645010_15086.cpp:9:7: error: 'nex' was not declared in this scope
   p = nex[p][c];
       ^~~
0_0_38645010_15086.cpp:9:7: note: suggested alternative: 'onexit'
   p = nex[p][c];
       ^~~
       onexit
0_0_38645010_15086.cpp:11:2: error: 'exist' was not declared in this scope
  exist[p] = 1;
  ^~~~~
0_0_38645010_15086.cpp:11:2: note: suggested alternative: 'exit'
  exist[p] = 1;
  ^~~~~
  exit
0_0_38645010_15086.cpp: In function 'bool find(const char*, int)':
0_0_38645010_15086.cpp:17:8: error: 'nex' was not declared in this scope
   if (!nex[p][c]) return 0;
        ^~~
0_0_38645010_15086.cpp:17:8: note: suggested alternative: 'onexit'
   if (!nex[p][c]) return 0;
        ^~~
        onexit
0_0_38645010_15086.cpp:18:7: error: 'nex' was not declared in this scope
   p = nex[p][c];
       ^~~
0_0_38645010_15086.cpp:18:7: note: suggested alternative: 'onexit'
   p = nex[p][c];
       ^~~
       onexit
0_0_38645010_15086.cpp:20:9: error: 'exist' was not declared in this scope
  return exist[p];
         ^~~~~
0_0_38645010_15086.cpp:20:9: note: suggested alternative: 'exit'
  return exist[p];
         ^~~~~
         exit


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