#include <stdio.h>
void cal( int (*a)[3] );
int main(void)
{
int a[ ][3] = { {1,1,1},
{2,3,2},
{1,1,3},
};
cal(a);
return 0;
}
void cal( int (*a)[3] )
{
int s;
for(int i=0; i<3; i++){
s = 0;
for(int j=0; j<3; j++){
s += a[i][j];
}
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgY2FsKCBpbnQgKCphKVszXSApOwppbnQgbWFpbih2b2lkKQp7CmludCBhWyBdWzNdID0geyB7MSwxLDF9LAp7MiwzLDJ9LAp7MSwxLDN9LAp9OwpjYWwoYSk7CnJldHVybiAwOwp9CnZvaWQgY2FsKCBpbnQgKCphKVszXSApCnsKaW50IHM7CmZvcihpbnQgaT0wOyBpPDM7IGkrKyl7CnMgPSAwOwpmb3IoaW50IGo9MDsgajwzOyBqKyspewpzICs9IGFbaV1bal07Cn0KcHJpbnRmKCIlZCAiLCBzKTsKfQp9