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_20241561_1836.cpp: In function 'void trieFree(std::shared_ptr<node>)':
0_0_20241561_1836.cpp:89:12: error: type 'class std::shared_ptr<node>' argument given to 'delete', expected pointer
     delete root;
            ^
0_0_20241561_1836.cpp: In function 'int main()':
0_0_20241561_1836.cpp:96:33: error: conversion from 'node*' to non-scalar type 'std::shared_ptr<node>' requested
     shared_ptr<node> root = new node;
                                 ^


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-22 15:17:17, Gzip enabled