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_21372281_8099.cpp: In function 'int main()':
0_0_21372281_8099.cpp:57:76: error: no matching function for call to 'read(int*)'
     for (int i = 1; i <= n; ++i) for (int j = 1; j <= m; ++j) read(&g[i][j]);
                                                                            ^
0_0_21372281_8099.cpp:57:76: note: candidates are:
0_0_21372281_8099.cpp:16:5: note: int read(char*)
 int read(char *s) {
     ^
0_0_21372281_8099.cpp:16:5: note:   no known conversion for argument 1 from 'int*' to 'char*'
0_0_21372281_8099.cpp:34:6: note: bool read(int&)
 bool read(int &x) {
      ^
0_0_21372281_8099.cpp:34:6: note:   no known conversion for argument 1 from 'int*' to 'int&'


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:50:13, Gzip enabled