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_39355070_3909.cpp: In function 'int main()':
0_0_39355070_3909.cpp:117:31: error: cannot convert 'SequentialList' to 'SequentialList*'
  117 |                 initalizeList(s,n);
      |                               ^
      |                               |
      |                               SequentialList
0_0_39355070_3909.cpp:12:36: note:   initializing argument 1 of 'void initalizeList(SequentialList*, int)'
   12 | void initalizeList(SequentialList *list,int capacity){
      |                    ~~~~~~~~~~~~~~~~^~~~
0_0_39355070_3909.cpp:119:33: error: expected ';' before '<' token
  119 |                 for(int i = 0 ,i < n;i++){
      |                                 ^~
      |                                 ;
0_0_39355070_3909.cpp:119:34: error: expected primary-expression before '<' token
  119 |                 for(int i = 0 ,i < n;i++){
      |                                  ^
0_0_39355070_3909.cpp:121:41: error: cannot convert 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int'
  121 |                         insert(&s,i,cin >> v);
      |                                     ~~~~^~~~
      |                                         |
      |                                         std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
0_0_39355070_3909.cpp:30:53: note:   initializing argument 3 of 'void insert(SequentialList*, int, int)'
   30 | void insert(SequentialList *list ,int index,eleType element){
      |                                                     ^


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-09-29 10:28:40, Gzip enabled