Borderou de evaluare (job #1413011)

Utilizator vladdy47Bucur Vlad Andrei vladdy47 Data 1 aprilie 2015 18:03:28
Problema Marbles Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d\n",&N,&M); ^ user.cpp:23:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:27:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d\n", &coord, &cul); ^ user.cpp:27:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:34:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d %d\n", &OP, &I, &J); ^ user.cpp:34:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:34:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:64:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n",Max); ^ user.cpp:20:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("marbles.in","r",stdin); ^ user.cpp:21:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("marbles.out","w",stdout); ^ user.cpp:23:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&N,&M); ^ user.cpp:27:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &coord, &cul); ^ user.cpp:34:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d\n", &OP, &I, &J); ^ user.cpp:38:36: warning: array subscript is below array bounds [-Warray-bounds] if (poz < 0) swap(b[poz],a[I]); ^ user.cpp:38:36: warning: array subscript is below array bounds [-Warray-bounds] user.cpp:50:28: warning: array subscript is below array bounds [-Warray-bounds] if (b[k] != 0) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms232kbKilled by signal 11(SIGSEGV).0
20ms224kbKilled by signal 11(SIGSEGV).0
30ms228kbKilled by signal 11(SIGSEGV).0
40ms224kbKilled by signal 11(SIGSEGV).0
50ms228kbKilled by signal 11(SIGSEGV).0
60ms228kbKilled by signal 11(SIGSEGV).0
70ms228kbKilled by signal 11(SIGSEGV).0
80ms228kbKilled by signal 11(SIGSEGV).0
90ms224kbKilled by signal 11(SIGSEGV).0
100ms228kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?