Borderou de evaluare (job #1180114)

Utilizator andrei_vlad.postoacaPostoaca Andrei Vlad 322CC andrei_vlad.postoaca Data 29 aprilie 2014 22:43:15
Problema Subsiruri 3 Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:13:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(pIn, "%d", &T); ^ user.cpp:17:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(pIn, "%d%d", &N, &K); ^ user.cpp:17:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:19:5: error: cannot convert ‘int*’ to ‘long long int*’ in assignment a = (int *)malloc(N * sizeof(int)); ^ user.cpp:22:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(pIn, "%d", &a[i]); ^ user.cpp:24:5: error: cannot convert ‘int**’ to ‘long long int**’ in assignment M = (int **)calloc(N, sizeof(int *)); ^ user.cpp:27:9: error: cannot convert ‘int*’ to ‘long long int*’ in assignment M[i] = (int *)calloc(N, sizeof(int)); ^

Ceva nu functioneaza?