Borderou de evaluare (job #2249867)

Utilizator vladcainamisirVlad Cainamisir vladcainamisir Data 30 septembrie 2018 11:29:45
Problema Balbaiala Status done
Runda Algoritmiada 2018 Runda Finala Juniori Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:19:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] f[v[i]][++f[v[i]][0]] = i; ^ user.cpp:19:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] f[v[i]][++f[v[i]][0]] = i; ^ user.cpp:25:15: error: ‘gets’ was not declared in this scope gets(s); ^ user.cpp:36:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(f[s[0]][caut] != 0) ^ user.cpp:38:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] caut = f[s[0]][caut]; ^ user.cpp:43:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] dreapta = f[car][0]; ^ user.cpp:48:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(f[car][mijloc] == caut) ^ user.cpp:50:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] else if(f[car][mijloc] < caut) ^ user.cpp:57:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(caut < f[car][stanga] && f[car][stanga + mij - 1] != 0){ ^ user.cpp:57:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(caut < f[car][stanga] && f[car][stanga + mij - 1] != 0){ ^ user.cpp:58:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] caut = f[car][stanga + mij - 1]; ^ user.cpp:63:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( caut < f[car][sol2] && f[car][sol2 + mij - 1] != 0) ^ user.cpp:63:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( caut < f[car][sol2] && f[car][sol2 + mij - 1] != 0) ^ user.cpp:64:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] caut = f[car][sol2 + mij - 1]; ^ user.cpp:13:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("balbaiala.in","r",stdin); ^ user.cpp:14:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("balbaiala.out","w",stdout); ^ user.cpp:15:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?