Borderou de evaluare (job #1543506)

Utilizator antanaAntonia Boca antana Data 6 decembrie 2015 11:08:32
Problema KBetray Status done
Runda Algoritmiada 2016 - Runda 1, Juniori Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:32:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d", &x, &y); ^ user.cpp:32:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:27:24: warning: unused variable ‘j’ [-Wunused-variable] long long n, k, i, j, sum,a, x, y, c1, c2, mij; ^ user.cpp:27:31: warning: unused variable ‘a’ [-Wunused-variable] long long n, k, i, j, sum,a, x, y, c1, c2, mij; ^ user.cpp:25:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("kbetray.in", "r", stdin); ^ user.cpp:26:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("kbetray.out", "w", stdout); ^ user.cpp:28:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld", &n, &k); ^ user.cpp:32:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^ user.cpp:27:48: warning: ‘mij’ may be used uninitialized in this function [-Wmaybe-uninitialized] long long n, k, i, j, sum,a, x, y, c1, c2, mij; ^
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms260kbOK10
20ms260kbIncorect0
30ms260kbIncorect0
40ms272kbIncorect0
50ms264kbIncorect0
68ms340kbIncorect0
796ms1036kbIncorect0
892ms1040kbIncorect0
996ms1040kbIncorect0
1096ms1036kbIncorect0
Punctaj total10

Ceva nu functioneaza?