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_20241552_25079.cpp: In function 'void trieInsert(std::shared_ptr<node>&, const string&)':
0_0_20241552_25079.cpp:53:46: error: missing template arguments before '(' token
             shared_ptr<node> tmp = shared_ptr(new node);
                                              ^
0_0_20241552_25079.cpp: In function 'int trieQuery(std::shared_ptr<node>&, const string&)':
0_0_20241552_25079.cpp:75:9: error: expected ';' before '}' token
         }
         ^
0_0_20241552_25079.cpp: In function 'void trieFree(std::shared_ptr<node>)':
0_0_20241552_25079.cpp:89:12: error: type 'class std::shared_ptr<node>' argument given to 'delete', expected pointer
     delete root;
            ^
0_0_20241552_25079.cpp: In function 'int main()':
0_0_20241552_25079.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:09:40, Gzip enabled