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;
^
|