Borderou de evaluare (job #1649639)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 11 martie 2016 14:27:17
Problema Cobai Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:99:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] go(x , y , dir[v[p]]); ^ user.cpp:68:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cobai.in","r",stdin); ^ user.cpp:69:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cobai.out","w",stdout); ^ user.cpp:71:29: 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:72:42: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] for (i = 1; i <= n; ++i) gets(a[i]+1); ^ user.cpp:73:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(v+1); k = strlen(v+1); ^ user.cpp:27:26: warning: ‘y’ may be used uninitialized in this function [-Wmaybe-uninitialized] return (x - 1) * m + y; ^ user.cpp:80:29: note: ‘y’ was declared here bool found = 0; int x , y; ^ user.cpp:27:15: warning: ‘x’ may be used uninitialized in this function [-Wmaybe-uninitialized] return (x - 1) * m + y; ^ user.cpp:80:25: note: ‘x’ was declared here bool found = 0; int x , y; ^ 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:72:42: /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/ccmilZgf.o: In function `main': user.cpp:(.text.startup+0x8c): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0xb5): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms296kbOk!5
20ms300kbOk!5
30ms300kbOk!5
40ms300kbOk!5
50ms296kbOk!5
60ms296kbOk!5
70ms300kbOk!5
80ms300kbOk!5
90ms308kbOk!5
100ms304kbOk!5
110ms304kbOk!5
124ms308kbOk!5
134ms300kbOk!5
148ms308kbOk!5
154ms300kbOk!5
164ms304kbOk!5
170ms304kbOk!5
1824ms304kbOk!5
1924ms308kbOk!5
2032ms304kbOk!5
Punctaj total100

Ceva nu functioneaza?