Pagini recente » Borderou de evaluare (job #611416) | Borderou de evaluare (job #2693509) | Borderou de evaluare (job #1004031) | Borderou de evaluare (job #1138281) | Borderou de evaluare (job #2208403)
Borderou de evaluare (job #2208403)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:13:28: warning: format ‘%c’ expects argument of type ‘char*’, but argument 4 has type ‘int*’ [-Wformat=]
scanf("%d%d%c",&n,&m,&c);
^
user.cpp:30:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(sir);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:30:17: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(sir);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:100:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(a[i][j]==b[i][j]&&a[i][j]!=-1&&a[i][j]!=0)
^
user.cpp:10:24: warning: unused variable ‘y’ [-Wunused-variable]
int n,m,i,inc,sf,x,y,xi,yi,xf,yf,l,c,j,pozi,pozj;
^
user.cpp:11:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rj.in","r",stdin);
^
user.cpp:12:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rj.out","w",stdout);
^
user.cpp:13:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%c",&n,&m,&c);
^
user.cpp:30:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(sir);
^
user.cpp:109:17: warning: ‘pozj’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(pozj>j)
^~
user.cpp:80:14: warning: ‘yf’ may be used uninitialized in this function [-Wmaybe-uninitialized]
b[xf][yf]=1;
~~~~~~~~~^~
user.cpp:80:14: warning: ‘xf’ may be used uninitialized in this function [-Wmaybe-uninitialized]
user.cpp:60:14: warning: ‘yi’ may be used uninitialized in this function [-Wmaybe-uninitialized]
a[xi][yi]=1;
~~~~~~~~~^~
user.cpp:60:14: warning: ‘xi’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/tmp/ccDae0LE.o: In function `main':
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 756kb | OK | 10 | 0 |
2 | 0ms | 756kb | Incorect | 0 |
3 | 0ms | 876kb | Incorect | 0 |
4 | 0ms | 876kb | OK | 10 |
5 | 0ms | 796kb | OK | 10 |
6 | 0ms | 752kb | OK | 10 | 50 |
7 | 0ms | 796kb | OK | 10 |
8 | 0ms | 816kb | OK | 10 |
9 | 0ms | 860kb | OK | 10 |
10 | 0ms | 864kb | OK | 10 |
Punctaj total | 50 |