1 <span class="kw4">int</span> sum2<span class="br0">(</span><span class="kw4">int</span> n<span class="sy0">,</span> <span class="kw4">int</span> m<span class="sy0">,</span> <span class="kw4">int</span> m<span class="br0">[</span>n<span class="br0">]</span><span class="br0">[</span>m<span class="br0">]</span><span class="br0">)</span>
2 <span class="br0">{</span>
3 <span class="kw4">int</span> i<span class="sy0">,</span> j<span class="sy0">,</span> sum<span class="sy0">;</span>
4 <span class="kw1">for</span><span class="br0">(</span>i <span class="sy0">=</span> sum <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> i <span class="sy0"><</span> n<span class="sy0">;</span> i<span class="sy0">++</span><span class="br0">)</span>
5 <span class="kw1">for</span><span class="br0">(</span>j <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> j <span class="sy0"><</span> m<span class="sy0">;</span> j<span class="sy0">++</span><span class="br0">)</span>
6 sum <span class="sy0">+=</span> m<span class="br0">[</span>i<span class="br0">]</span><span class="br0">[</span>j<span class="br0">]</span><span class="sy0">;</span>
7 <span class="kw1">return</span> sum<span class="sy0">;</span>
8 <span class="br0">}</span>
10 <span class="kw4">int</span> sum3<span class="br0">(</span><span class="kw4">int</span> n<span class="sy0">,</span> <span class="kw4">int</span> m<span class="sy0">,</span> <span class="kw4">int</span> p<span class="sy0">,</span> <span class="kw4">int</span> m<span class="br0">[</span>n<span class="br0">]</span><span class="br0">[</span>m<span class="br0">]</span><span class="br0">[</span>p<span class="br0">]</span><span class="br0">)</span>
11 <span class="br0">{</span>
12 <span class="co1">// ...</span>
13 <span class="br0">}</span>