Borderou de evaluare (job #2252282)

Utilizator memecoinMeme Coin memecoin Data 2 octombrie 2018 18:02:15
Problema Decod Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:71:22: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[15]’ [-Wformat=] scanf("%s\n", &first); ^ user.cpp:72:16: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[800005]’ [-Wformat=] scanf("%s", &s); ^ user.cpp:83:30: error: ‘strlen’ was not declared in this scope for (int i = 0; i < strlen(s); i += p) { ^ user.cpp:67:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("decod.in", "r", stdin); ^ user.cpp:68:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("decod.out", "w", stdout); ^ user.cpp:70:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &k, &p); ^ user.cpp:71:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", &first); ^ user.cpp:72:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &s); ^

Ceva nu functioneaza?