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_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


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-26 05:42:35, Gzip enabled