Borderou de evaluare (job #1727350)

Utilizator cristina_borzaCristina Borza cristina_borza Data 10 iulie 2016 16:44:25
Problema Abc2 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:38:23: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[10000005]’ [-Wformat=] scanf("%s" , &prop); ^ user.cpp:41:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[50]’ [-Wformat=] while (scanf("%s" , &cuv) != EOF) { ^ user.cpp:63:10: error: ‘sol’ was not declared in this scope ++sol; ^ user.cpp:70:15: error: ‘sol’ was not declared in this scope ++sol; ^ user.cpp:74:19: error: ‘sol’ was not declared in this scope printf("%d" , sol); ^ user.cpp:35:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("abc2.in" , "r" , stdin); ^ user.cpp:36:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("abc2.out" , "w" , stdout); ^ user.cpp:38:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s" , &prop); ^

Ceva nu functioneaza?