/in/foo.cc:4:7: error: storage size of 'a' isn't known
int a[],n1,t1;
^
/in/foo.cc:5:7: error: storage size of 'b' isn't known
int b[],n2,t2;
^
/in/foo.cc: In function 'void FindMax1()':
/in/foo.cc:11:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<n1;i++)
^~~
/in/foo.cc:13:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
t1++;
^~
/in/foo.cc:14:7: error: 'i' was not declared in this scope
if(a[i]!=0)
^
/in/foo.cc: In function 'void FindMax2()':
/in/foo.cc:24:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<n2;i++)
^~~
/in/foo.cc:26:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
t2++;
^~
/in/foo.cc:27:7: error: 'i' was not declared in this scope
if(b[i]!=0)
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:35:10: warning: statement is a reference, not call, to function 'FindMax1' [-Waddress]
FindMax1;
^
/in/foo.cc:35:10: warning: statement has no effect [-Wunused-value]
/in/foo.cc:36:10: warning: statement is a reference, not call, to function 'FindMax2' [-Waddress]
FindMax2;
^
/in/foo.cc:36:10: warning: statement has no effect [-Wunused-value]