Borderou de evaluare (job #1553126)

Utilizator vlady1997Vlad Bucur vlady1997 Data 19 decembrie 2015 12:12:35
Problema Radacina Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:26:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat=] if (!valst) printf("%d\n",st); ^ user.cpp:27:38: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat=] else if (!valdr) printf("%d\n",dr); ^ user.cpp:6:77: warning: unused variable ‘ok’ [-Wunused-variable] float a[11], st=-20, dr=20, valst=0, valdr=0, valm=0, m; int n, i; bool ok=false; ^ user.cpp:7:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("radacina.in","r",stdin); ^ user.cpp:8:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("radacina.out","w",stdout); ^ user.cpp:9:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:10:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i=0; i<=n; i++) scanf("%f",&a[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
1Depăşit300kbTime limit exceeded.00
2Depăşit304kbTime limit exceeded.0
3Depăşit304kbTime limit exceeded.0
4Depăşit304kbTime limit exceeded.0
5Depăşit308kbTime limit exceeded.0
6Depăşit304kbTime limit exceeded.0
7Depăşit304kbTime limit exceeded.0
8Depăşit300kbTime limit exceeded.0
9Depăşit300kbTime limit exceeded.0
10Depăşit308kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?