Borderou de evaluare (job #1714599)

Utilizator AlexEnacheEnache Alexandru-Paul AlexEnache Data 8 iunie 2016 20:04:16
Problema CMMDC 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:9:5: error: expected ‘;’ before ‘while’ while (b) ^ user.cpp:15:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int*’ [-Wformat=] printf("%d\n",&a); ^ user.cpp:7:13: warning: unused variable ‘c’ [-Wunused-variable] int a,b,c; ^ user.cpp:5:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cmmdc.in","r",stdin); ^ user.cpp:6:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cmmdc.out","w",stdout); ^ user.cpp:14:5: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] } ^

Ceva nu functioneaza?