Borderou de evaluare (job #1582011)

Utilizator VladTiberiuMihailescu Vlad Tiberiu VladTiberiu Data 27 ianuarie 2016 16:05:25
Problema 2sah Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:25:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%I64d",&p); ^ user.cpp:26:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%I64d%I64d",&n,&k); ^ user.cpp:26:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:28:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%I64d\n",power(3,k - 1) % 100003); ^ user.cpp:47:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%I64d",s % 100003); ^ user.cpp:40:13: warning: unused variable ‘ic’ [-Wunused-variable] int ic = 1, jc = k; ^ user.cpp:40:21: warning: unused variable ‘jc’ [-Wunused-variable] int ic = 1, jc = k; ^ user.cpp:23: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:24: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:25:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%I64d",&p); ^ user.cpp:26:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%I64d%I64d",&n,&k); ^ user.cpp:30:21: warning: ‘n’ may be used uninitialized in this function [-Wmaybe-uninitialized] int n = n + 1; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbCorect!2
20ms272kbCorect!2
30ms276kbCorect!2
40ms272kbCorect!2
50ms272kbCorect!2
60ms276kbCorect!2
70ms280kbCorect!2
80ms276kbCorect!2
90ms276kbCorect!2
100ms276kbRaspuns gresit!0
110ms284kbRaspuns gresit!0
120ms280kbRaspuns gresit!0
130ms284kbRaspuns gresit!0
140ms280kbRaspuns gresit!0
150ms280kbRaspuns gresit!0
160ms284kbRaspuns gresit!0
170ms284kbRaspuns gresit!0
180ms280kbRaspuns gresit!0
190ms276kbRaspuns gresit!0
200ms276kbCorect!2
Punctaj total20

Ceva nu functioneaza?