Borderou de evaluare (job #2151875)

Utilizator IulianaBinzarIuliana Binzar IulianaBinzar Data 5 martie 2018 00:06:51
Problema Text3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void read()’: user.cpp:10:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[30]’ [-Wformat=] while(scanf("%s",&s[++n])!=EOF); ^ user.cpp: In function ‘void solve()’: user.cpp:22:23: error: ‘strlen’ was not declared in this scope b[s[1][strlen(s[1])-1]-'a']=1; ^ user.cpp: In function ‘int main()’: user.cpp:43:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("text3.in","r",stdin); ^ user.cpp:44:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("text3.out","w",stdout); ^

Ceva nu functioneaza?