Borderou de evaluare (job #1755899)

Utilizator caprariuapCaprariu Alin-Paul caprariuap Data 11 septembrie 2016 13:24:13
Problema 2sah Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:52:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&t); ^ user.cpp:53:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d",&n,&k); ^ user.cpp:53:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:59:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",trei(3,k-1)); ^ user.cpp:84:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",zz); ^ user.cpp:80:33: warning: unused variable ‘xx’ [-Wunused-variable] long long x,y,z,xx,yy,zz; ^ user.cpp:80:36: warning: unused variable ‘yy’ [-Wunused-variable] long long x,y,z,xx,yy,zz; ^ user.cpp:50:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("2sah.in","r",stdin); ^ user.cpp:51:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("2sah.out","w",stdout); ^ user.cpp:52:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^ user.cpp:53:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbCorect!2
20ms256kbCorect!2
30ms256kbCorect!2
40ms256kbCorect!2
50ms260kbCorect!2
60ms256kbCorect!2
70ms260kbCorect!2
80ms252kbCorect!2
90ms256kbCorect!2
100ms260kbCorect!8
110ms268kbCorect!8
120ms268kbCorect!8
130ms276kbCorect!8
140ms276kbCorect!8
150ms276kbCorect!8
160ms284kbCorect!8
170ms292kbCorect!8
180ms292kbCorect!8
190ms288kbCorect!8
200ms256kbCorect!2
Punctaj total100

Ceva nu functioneaza?