Borderou de evaluare (job #1500142)

Utilizator vlcmodanModan Valentin vlcmodan Data 11 octombrie 2015 16:05:25
Problema Maxsecv Status done
Runda how_fast_can_you_type Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:14:22: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf("%u",&x); ^ user.cpp:23:12: error: expected ‘}’ before ‘else’ else ^ user.cpp:8:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("maxsecv.in","r",stdin); ^ user.cpp:9:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("maxsecv.out","w",stdout); ^ user.cpp:10:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:14:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%u",&x); ^

Ceva nu functioneaza?