0_0_20241531_32205.cpp: In function 'void trieInsert(std::shared_ptr<node>&, const string&)':
0_0_20241531_32205.cpp:53:40: error: conversion from 'node*' to non-scalar type 'std::shared_ptr<node>' requested
shared_ptr<node> tmp = new node;
^
0_0_20241531_32205.cpp:60:14: error: 'p' was not declared in this scope
(p->count)++;
^
0_0_20241531_32205.cpp: In function 'int trieQuery(std::shared_ptr<node>&, const string&)':
0_0_20241531_32205.cpp:75:9: error: expected ';' before '}' token
}
^
0_0_20241531_32205.cpp: In function 'void trieFree(std::shared_ptr<node>)':
0_0_20241531_32205.cpp:89:12: error: type 'class std::shared_ptr<node>' argument given to 'delete', expected pointer
delete root;
^
0_0_20241531_32205.cpp: In function 'int main()':
0_0_20241531_32205.cpp:96:33: error: conversion from 'node*' to non-scalar type 'std::shared_ptr<node>' requested
shared_ptr<node> root = new node;
^
|