Borderou de evaluare (job #1701266)

Utilizator dobrebogdanDobre Bogdan Mihai dobrebogdan Data 12 mai 2016 16:53:43
Problema Rafaela Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:126:15: warning: unused variable ‘j’ [-Wunused-variable] int n,q,i,j,x,y,z; ^ user.cpp:126:21: warning: unused variable ‘z’ [-Wunused-variable] int n,q,i,j,x,y,z; ^ user.cpp:124:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rafaela.in","r",stdin); ^ user.cpp:125:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rafaela.out","w",stdout); ^ user.cpp:128:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&q); ^ user.cpp:131:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x,&y); ^ user.cpp:143:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&val[i]); ^ user.cpp:152:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c",&ch); ^ user.cpp:155:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&x); ^ user.cpp:160:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n",&x,&y); ^ user.cpp: In function ‘void df2(int, int)’: user.cpp:48:9: warning: ‘j’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(i!=j) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms4996kbIncorect0
2268msDepăşitMemory limit exceeded.0
3272msDepăşitMemory limit exceeded.0
4376msDepăşitMemory limit exceeded.0
5276ms14224kbIncorect0
6468msDepăşitMemory limit exceeded.0
7480msDepăşitMemory limit exceeded.0
8504ms21504kbIncorect0
9544msDepăşitMemory limit exceeded.0
10556msDepăşitMemory limit exceeded.0
Punctaj total0

Ceva nu functioneaza?