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_35053995_18759.cpp: In function 'int main()':
0_0_35053995_18759.cpp:10:15: error: invalid conversion from 'char' to 'char (*)[4]' [-fpermissive]
     a(str[3][4]);
               ^
0_0_35053995_18759.cpp:2:6: note: initializing argument 1 of 'void a(char (*)[4])'
 void a(char str[3][4]);
      ^
0_0_35053995_18759.cpp: In function 'void a(char (*)[4])':
0_0_35053995_18759.cpp:29:23: error: invalid conversion from 'void (*)(char (*)[4])' to 'char' [-fpermissive]
             char t=a[j];
                       ^
0_0_35053995_18759.cpp:30:17: error: assignment of read-only location '*(a + ((sizetype)j))'
             a[j]=a[j+1];
                 ^
0_0_35053995_18759.cpp:30:17: error: cannot convert 'void(char (*)[4])' to 'void(char (*)[4])' in assignment
0_0_35053995_18759.cpp:31:19: error: assignment of read-only location '*(a + (((sizetype)j) + 1u))'
             a[j+1]=t;
                   ^
0_0_35053995_18759.cpp:31:19: error: cannot convert 'char' to 'void(char (*)[4])' in assignment


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-25 03:44:50, Gzip enabled