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_38341081_21312.c: In function 'build':
0_0_38341081_21312.c:3:10: error: 'cnt' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
          ^
0_0_38341081_21312.c:3:10: note: each undeclared identifier is reported only once for each function it appears in
0_0_38341081_21312.c:3:14: error: 'tree' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
              ^
0_0_38341081_21312.c: At top level:
0_0_38341081_21312.c:11:5: error: redefinition of 'build'
 int build(int l,int r) {
     ^
0_0_38341081_21312.c:2:5: note: previous definition of 'build' was here
 int build(int l,int r) {
     ^
0_0_38341081_21312.c: In function 'build':
0_0_38341081_21312.c:12:10: error: 'cnt' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
          ^
0_0_38341081_21312.c:12:14: error: 'tree' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
              ^
0_0_38341081_21312.c: At top level:
0_0_38341081_21312.c:20:5: error: redefinition of 'build'
 int build(int l,int r) {
     ^
0_0_38341081_21312.c:2:5: note: previous definition of 'build' was here
 int build(int l,int r) {
     ^
0_0_38341081_21312.c: In function 'build':
0_0_38341081_21312.c:21:10: error: 'cnt' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
          ^
0_0_38341081_21312.c:21:14: error: 'tree' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
              ^
0_0_38341081_21312.c: At top level:
0_0_38341081_21312.c:29:5: error: redefinition of 'build'
 int build(int l,int r) {
     ^
0_0_38341081_21312.c:2:5: note: previous definition of 'build' was here
 int build(int l,int r) {
     ^
0_0_38341081_21312.c: In function 'build':
0_0_38341081_21312.c:30:10: error: 'cnt' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
          ^
0_0_38341081_21312.c:30:14: error: 'tree' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
              ^
0_0_38341081_21312.c: At top level:
0_0_38341081_21312.c:38:5: error: redefinition of 'build'
 int build(int l,int r) {
     ^
0_0_38341081_21312.c:2:5: note: previous definition of 'build' was here
 int build(int l,int r) {
     ^
0_0_38341081_21312.c: In function 'build':
0_0_38341081_21312.c:39:10: error: 'cnt' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
          ^
0_0_38341081_21312.c:39:14: error: 'tree' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
              ^
0_0_38341081_21312.c: At top level:
0_0_38341081_21312.c:47:5: error: redefinition of 'build'
 int build(int l,int r) {
     ^
0_0_38341081_21312.c:2:5: note: previous definition of 'build' was here
 int build(int l,int r) {
     ^
0_0_38341081_21312.c: In function 'build':
0_0_38341081_21312.c:48:10: error: 'cnt' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
          ^
0_0_38341081_21312.c:48:14: error: 'tree' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
              ^
0_0_38341081_21312.c: At top level:
0_0_38341081_21312.c:56:5: error: redefinition of 'build'
 int build(int l,int r) {
     ^
0_0_38341081_21312.c:2:5: note: previous definition of 'build' was here
 int build(int l,int r) {
     ^
0_0_38341081_21312.c: In function 'build':
0_0_38341081_21312.c:57:10: error: 'cnt' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
          ^
0_0_38341081_21312.c:57:14: error: 'tree' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
              ^
0_0_38341081_21312.c: At top level:
0_0_38341081_21312.c:65:5: error: redefinition of 'build'
 int build(int l,int r) {
     ^
0_0_38341081_21312.c:2:5: note: previous definition of 'build' was here
 int build(int l,int r) {
     ^
0_0_38341081_21312.c: In function 'build':
0_0_38341081_21312.c:66:10: error: 'cnt' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
          ^
0_0_38341081_21312.c:66:14: error: 'tree' undeclared (first use in this function)
  int p=++cnt;tree[p].l=l;tree[p].r=r;
              ^


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-01-11 01:57:02, Gzip enabled