Borderou de evaluare (job #1346245)

Utilizator anarogozAna Rogoz anarogoz Data 18 februarie 2015 09:13:16
Problema Search 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:17:34: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5002]’ [-Wformat=] scanf("%s\n", &cuvinte[i]); ^ user.cpp:28:21: error: ‘k’ was not declared in this scope for(k = 0; k <= 25; k++) ^ user.cpp:35:16: error: ‘k’ was not declared in this scope nr[k] += (st[1] != 0); ^ user.cpp:18:10: warning: unused variable ‘ch’ [-Wunused-variable] char ch; ^ user.cpp:19:18: warning: unused variable ‘poz’ [-Wunused-variable] int num = 0, poz; ^ user.cpp:12:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("search.in", "r", stdin); ^ user.cpp:13:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("search.out", "w", stdout); ^ user.cpp:15:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &n, &m); ^ user.cpp:17:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", &cuvinte[i]); ^ user.cpp:21:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c\n", &s[i]); ^

Ceva nu functioneaza?