Borderou de evaluare (job #1660475)

Utilizator iulian_f2kGuraliuc Iulian iulian_f2k Data 23 martie 2016 09:53:51
Problema Banana Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void Solve()’: user.cpp:38:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(a[ x + dx[j] ][ y + dy[j] ]) ^ user.cpp:38:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(a[ x + dx[j] ][ y + dy[j] ]) ^ user.cpp:42:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] ry = Find(a[ x + dx[j] ][ y + dy[j] ]); ^ user.cpp:42:51: warning: array subscript has type ‘char’ [-Wchar-subscripts] ry = Find(a[ x + dx[j] ][ y + dy[j] ]); ^ user.cpp: In function ‘void Optimize()’: user.cpp:55:33: warning: left operand of comma operator has no effect [-Wunused-value] for(short int i=N, ok = 1; i>=1, ok; --i) ^ user.cpp: In function ‘void Read()’: user.cpp:97:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d", &N, &K); ^ user.cpp:97:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp: In function ‘void Solve()’: user.cpp:34:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hd%hd", &x, &y); ^ user.cpp: In function ‘void Read()’: user.cpp:95:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("banana.in", "rt", stdin); ^ user.cpp:96:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("banana.out", "wt", stdout); ^ user.cpp:97:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &K); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit10812kbTime limit exceeded.0
2Depăşit10808kbTime limit exceeded.0
3Depăşit10812kbTime limit exceeded.0
4Depăşit10816kbTime limit exceeded.0
5Depăşit10808kbTime limit exceeded.0
6Depăşit10796kbTime limit exceeded.0
7Depăşit10808kbTime limit exceeded.0
8Depăşit10812kbTime limit exceeded.0
9Depăşit10764kbTime limit exceeded.0
10Depăşit10820kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?