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_19979720_24434.cpp: In function 'void query(int, int, int, int, int)':
0_0_19979720_24434.cpp:58:18: error: 'ans' was not declared in this scope
   if(x>=l&&r<=y) ans=merge(ans,t[p]);
                  ^
0_0_19979720_24434.cpp:66:33: error: conversion from 'void' to non-scalar type 'node' requested
       node a=query(p*2,l,mid,x,y);
                                 ^
0_0_19979720_24434.cpp:67:37: error: conversion from 'void' to non-scalar type 'node' requested
       node b=query(p*2+1,mid+1,r,x,y);
                                     ^
0_0_19979720_24434.cpp:68:7: error: 'ans' was not declared in this scope
       ans=merge(ans,merge(a,b));
       ^


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