Borderou de evaluare (job #1501507)

Utilizator OlivianOlivian Dan Cretu Olivian Data 13 octombrie 2015 16:35:06
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:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘const char (*)[2]’ [-Wformat=] printf("%d",&"1") ^ user.cpp:12:5: error: expected ‘;’ before ‘}’ token } ^ user.cpp:23: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?