0_0_33349689_23647.cpp:6:21: error: field 'next' has incomplete type 'Trie [26]'
struct Trie next[MAX];
^
In file included from 0_0_33349689_23647.cpp:2:0:
0_0_33349689_23647.cpp:10:11: error: conversion from 'long long int' to non-scalar type 'Trie' requested
Trie root=NULL;
^
0_0_33349689_23647.cpp: In function 'void translate()':
0_0_33349689_23647.cpp:26:32: error: no matching function for call to 'Trie::Trie(void*)'
root=(Trie )malloc(sizeof(Trie));
^
0_0_33349689_23647.cpp:26:32: note: candidates are:
0_0_33349689_23647.cpp:5:16: note: Trie::Trie()
typedef struct Trie{
^
0_0_33349689_23647.cpp:5:16: note: candidate expects 0 arguments, 1 provided
0_0_33349689_23647.cpp:5:16: note: constexpr Trie::Trie(const Trie&)
0_0_33349689_23647.cpp:5:16: note: no known conversion for argument 1 from 'void*' to 'const Trie&'
0_0_33349689_23647.cpp:5:16: note: constexpr Trie::Trie(Trie&&)
0_0_33349689_23647.cpp:5:16: note: no known conversion for argument 1 from 'void*' to 'Trie&&'
0_0_33349689_23647.cpp:27:18: error: expected statement at end of input
for(i=0;i<MAX;i++)
^
0_0_33349689_23647.cpp:27:18: error: expected '}' at end of input
|