Borderou de evaluare (job #1884263)

Utilizator wilson182Alexandrina Panfil wilson182 Data 18 februarie 2017 16:30:32
Problema Bere Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:33:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d", &n, &t); ^ user.cpp:33:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:35:22: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%lld", &s[i]); ^ user.cpp:39:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d", &k, &x); ^ user.cpp:39:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:43:34: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%lld\n", trei(x, k, n)); ^ user.cpp:32:24: warning: unused variable ‘j’ [-Wunused-variable] long long n, t, k, i, j, x; ^ user.cpp:30:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("br.in", "r", stdin); ^ user.cpp:31:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("br.out", "w", stdout); ^ user.cpp:33:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &t); ^ user.cpp:35:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &s[i]); ^ user.cpp:39:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &k, &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms432kbIncorect0
20ms412kbKilled by signal 11(SIGSEGV).0
30ms408kbKilled by signal 11(SIGSEGV).0
40ms416kbKilled by signal 11(SIGSEGV).0
50ms412kbKilled by signal 11(SIGSEGV).0
60ms408kbKilled by signal 11(SIGSEGV).0
74ms416kbKilled by signal 11(SIGSEGV).0
84ms416kbKilled by signal 11(SIGSEGV).0
98ms408kbKilled by signal 11(SIGSEGV).0
108ms416kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?