Borderou de evaluare (job #1768949)

Utilizator deliricnagisa deliric Data 1 octombrie 2016 18:58:55
Problema Matrice Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘char*’ [-Wformat=] scanf("%d %d %d", &N, &M, &A); ^ user.cpp:18:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] for (i = 0; i < N; i++) scanf("%d", R+i); ^ user.cpp:19:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] for (i = 0; i < M; i++) scanf("%d", C+i); ^ user.cpp:45:35: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld %ld\n", Zmax, Nsol); ^ user.cpp:45:35: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] user.cpp:15:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("matrice.in", "r", stdin); ^ user.cpp:16:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("matrice.out", "w", stdout); ^ user.cpp:17:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &N, &M, &A); ^ user.cpp:18:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i = 0; i < N; i++) scanf("%d", R+i); ^ user.cpp:19:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i = 0; i < M; i++) scanf("%d", C+i); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms448kbOK10
20ms448kbIncorect0
30ms452kbIncorect0
40ms448kbIncorect0
54ms464kbIncorect0
64ms464kbIncorect0
74ms480kbIncorect0
88ms492kbIncorect0
98ms504kbIncorect0
1012ms500kbIncorect0
Punctaj total10

Ceva nu functioneaza?