Borderou de evaluare (job #1649633)

Utilizator smatei16Matei Staicu smatei16 Data 11 martie 2016 14:26:34
Problema Factorial Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int fact(int)’: user.cpp:9:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int fact1(int)’: user.cpp:13:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:29:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] if(nr2==p && nr55>=p)printf("%d",n); ^ user.cpp:30:40: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] else if(nr5==p && nr22>=p)printf("%d",x); ^ user.cpp:15:30: 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:16:31: 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:17:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&p); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbCorect!5
20ms284kbCorect!5
30ms260kbCorect!5
40ms280kbCorect!5
5Depăşit248kbTime limit exceeded.0
6Depăşit240kbTime limit exceeded.0
7Depăşit264kbTime limit exceeded.0
8Depăşit240kbTime limit exceeded.0
9Depăşit244kbTime limit exceeded.0
10Depăşit244kbTime limit exceeded.0
11Depăşit244kbTime limit exceeded.0
12Depăşit244kbTime limit exceeded.0
13Depăşit240kbTime limit exceeded.0
14Depăşit244kbTime limit exceeded.0
15Depăşit248kbTime limit exceeded.0
16Depăşit240kbTime limit exceeded.0
17Depăşit248kbTime limit exceeded.0
18Depăşit244kbTime limit exceeded.0
19Depăşit248kbTime limit exceeded.0
20Depăşit240kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?