Borderou de evaluare (job #1326992)

Utilizator biancabuduranBianca Buduran biancabuduran Data 26 ianuarie 2015 11:54:43
Problema Factorial Status done
Runda procopiu_9_oji2015 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:12:5: error: ‘s’ was not declared in this scope s=0, ^ user.cpp:13:5: error: ‘nr0’ was not declared in this scope nr0=1, ^ user.cpp:14:5: error: ‘nr’ was not declared in this scope nr=10, ^ user.cpp:15:5: error: ‘i’ was not declared in this scope i=5; ^ user.cpp:16:8: error: ‘p’ was not declared in this scope if(p==0) g<<1; ^ user.cpp:17:14: error: ‘p’ was not declared in this scope while(s<=p){ ^ user.cpp: At global scope: user.cpp:33:5: error: expected unqualified-id before ‘return’ } return 0; ^ user.cpp:34:1: error: expected declaration before ‘}’ token } ^ user.cpp: In function ‘int main()’: user.cpp:10:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("factorial.in","r",stdin); ^ user.cpp:11:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &P); ^

Ceva nu functioneaza?