Borderou de evaluare (job #1501516)

Utilizator OlivianOlivian Dan Cretu Olivian Data 13 octombrie 2015 16:40:40
Problema Factorial 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:11:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int*’ [-Wformat=] printf("%d",&x); ^ user.cpp:12:9: error: break statement not within loop or switch break; ^ user.cpp:24:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int*’ [-Wformat=] printf("%d",&N); ^ user.cpp:6:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("fact.in","r",stdin); ^ user.cpp:7:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("fact.out","w",stdout); ^ user.cpp:8:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&p); ^

Ceva nu functioneaza?