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){
| ^
|