My issue
whats the issue
My code
#include <stdio.h>
int main() {
int t, n, i, max = 0;
int m[n];
scanf("%d", & t);
scanf("%d", & n);
for (i = 0; i < t; i++) {
for (i = 0; i < n; i++) {
scanf("%d", m[i]);
}
for (i = 0; i < n; i++) {
if (m[i] > max) {
max = m[i];
}
printf("%d", & max);
}
}
}
Learning course: Data structures & Algorithms lab
Problem Link: https://www.codechef.com/learn/course/muj-dsa-c/MUJDSAC06/problems/UWCOI20A