Borderou de evaluare (job #1583662)

Utilizator matericristea88Cristea-Enache Matei matericristea88 Data 29 ianuarie 2016 10:27:10
Problema Muzeu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:50:17: warning: narrowing conversion of ‘i’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] }; ^ user.cpp:50:17: warning: narrowing conversion of ‘j’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] user.cpp:31:13: warning: unused variable ‘k’ [-Wunused-variable] int i,j,k,copaci,x1,y1,x2,y2,d,xx,yy; ^ user.cpp:31:15: warning: unused variable ‘copaci’ [-Wunused-variable] int i,j,k,copaci,x1,y1,x2,y2,d,xx,yy; ^ user.cpp:31:22: warning: unused variable ‘x1’ [-Wunused-variable] int i,j,k,copaci,x1,y1,x2,y2,d,xx,yy; ^ user.cpp:31:25: warning: unused variable ‘y1’ [-Wunused-variable] int i,j,k,copaci,x1,y1,x2,y2,d,xx,yy; ^ user.cpp:31:28: warning: unused variable ‘x2’ [-Wunused-variable] int i,j,k,copaci,x1,y1,x2,y2,d,xx,yy; ^ user.cpp:31:31: warning: unused variable ‘y2’ [-Wunused-variable] int i,j,k,copaci,x1,y1,x2,y2,d,xx,yy; ^ user.cpp:31:36: warning: unused variable ‘xx’ [-Wunused-variable] int i,j,k,copaci,x1,y1,x2,y2,d,xx,yy; ^ user.cpp:31:39: warning: unused variable ‘yy’ [-Wunused-variable] int i,j,k,copaci,x1,y1,x2,y2,d,xx,yy; ^ user.cpp:29:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("muzeu.in","r",stdin); ^ user.cpp:30:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("muzeu.out","w",stdout); ^ user.cpp:32:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:35:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(1+b[i]); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:35:21: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/ccrfJoBk.o: In function `main':
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms296kbOK10
20ms320kbOK10
30ms356kbOK10
40ms444kbOK10
58ms668kbOK10
616ms800kbOK10
716ms804kbOK10
812ms804kbOK10
916ms824kbOK10
1012ms828kbOK10
Punctaj total100

Ceva nu functioneaza?