Borderou de evaluare (job #1609780)

Utilizator hegedusPaul Hegedus hegedus Data 22 februarie 2016 23:55:43
Problema Dragoni Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void citire()’: user.cpp:14:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short unsigned int*’ [-Wformat=] scanf("%d%d%d",&p1,&n,&m); ^ user.cpp:14:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short unsigned int*’ [-Wformat=] user.cpp:14:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short unsigned int*’ [-Wformat=] user.cpp:15:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short unsigned int*’ [-Wformat=] for (i=1;i<=n;i++) {scanf("%d",&power[i]);} ^ user.cpp:18:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short unsigned int*’ [-Wformat=] scanf("%d%d",&x,&y); ^ user.cpp:18:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short unsigned int*’ [-Wformat=] user.cpp:19:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short unsigned int*’ [-Wformat=] scanf("%d",&a[x][y]); ^ user.cpp: In function ‘int main()’: user.cpp:78:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%d\n",d[1][n]); ^ user.cpp: In function ‘void citire()’: user.cpp:11:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dragoni.in","r",stdin); ^ user.cpp:12:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dragoni.out","w",stdout); ^ user.cpp:14:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&p1,&n,&m); ^ user.cpp:15:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i=1;i<=n;i++) {scanf("%d",&power[i]);} ^ user.cpp:18:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x,&y); ^ user.cpp:19:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[x][y]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms472kbRaspuns gresit!0
20ms420kbKilled by signal 11(SIGSEGV).0
30ms508kbKilled by signal 11(SIGSEGV).0
40ms420kbKilled by signal 11(SIGSEGV).0
50ms440kbKilled by signal 11(SIGSEGV).0
60ms428kbKilled by signal 11(SIGSEGV).0
70ms432kbKilled by signal 11(SIGSEGV).0
80ms432kbKilled by signal 11(SIGSEGV).0
90ms412kbKilled by signal 11(SIGSEGV).0
100ms432kbKilled by signal 11(SIGSEGV).0
110ms476kbRaspuns gresit!0
120ms424kbKilled by signal 11(SIGSEGV).0
130ms504kbKilled by signal 11(SIGSEGV).0
140ms420kbKilled by signal 11(SIGSEGV).0
150ms444kbKilled by signal 11(SIGSEGV).0
160ms424kbKilled by signal 11(SIGSEGV).0
170ms424kbKilled by signal 11(SIGSEGV).0
180ms420kbKilled by signal 11(SIGSEGV).0
190ms416kbKilled by signal 11(SIGSEGV).0
200ms424kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?