Pagini recente » Borderou de evaluare (job #2162888) | Borderou de evaluare (job #854192) | Borderou de evaluare (job #2383739) | Borderou de evaluare (job #2585120) | Borderou de evaluare (job #1308676)
Borderou de evaluare (job #1308676)
Raport evaluator
Compilare:
user.cpp: In function ‘void solve(int (*)[1010][4], int, int)’:
user.cpp:38:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
vaz[aux.x][aux.y][aux.dir]=0;
^
user.cpp:43:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(d[x][y][i]>d[aux.x][aux.y][aux.dir]+(aux.dir!=i))
^
user.cpp:45:51: warning: array subscript has type ‘char’ [-Wchar-subscripts]
d[x][y][i]=d[aux.x][aux.y][aux.dir]+(aux.dir!=i);
^
user.cpp: In function ‘int main()’:
user.cpp:65:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
scanf("%d",&v[i][j]);
^
user.cpp:76:29: warning: unused variable ‘p’ [-Wunused-variable]
for(int k=0,p=1;k<4;k++)
^
user.cpp:58:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("robot2.in", "r", stdin);
^
user.cpp:59:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("robot2.out", "w", stdout);
^
user.cpp:61:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:65:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i][j]);
^
user.cpp:68:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 416kb | Corect! | 10 |
2 | 0ms | 1008kb | Corect! | 10 |
3 | 12ms | 1920kb | Corect! | 10 |
4 | 120ms | 7004kb | Corect! | 10 |
5 | 128ms | 7008kb | Corect! | 10 |
6 | 292ms | 14600kb | Corect! | 10 |
7 | 292ms | 14596kb | Corect! | 10 |
8 | Depăşit | 36824kb | Time limit exceeded. | 0 |
9 | 384ms | 29548kb | Corect! | 10 |
10 | 216ms | 14572kb | Corect! | 10 |
Punctaj total | 90 |