Borderou de evaluare (job #1516645)

Utilizator bogdan10bosBogdan Sitaru bogdan10bos Data 3 noiembrie 2015 12:06:36
Problema Ksecv3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:18:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘LL* {aka long long int*}’ [-Wformat=] scanf("%d%d", &n, &k); ^ user.cpp:18:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘LL* {aka long long int*}’ [-Wformat=] user.cpp:22:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘LL* {aka long long int*}’ [-Wformat=] scanf("%d", &x); ^ user.cpp:36:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘LL* {aka long long int*}’ [-Wformat=] scanf("%d%d", &n, &k); ^ user.cpp:36:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘LL* {aka long long int*}’ [-Wformat=] user.cpp:40:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘LL* {aka long long int*}’ [-Wformat=] scanf("%d", &x); ^ user.cpp:45:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘LL {aka long long int}’ [-Wformat=] printf("%d ", i); ^ user.cpp:15:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ksecv3.in", "r", stdin); ^ user.cpp:16:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ksecv3.out", "w", stdout); ^ user.cpp:18:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &k); ^ user.cpp:22:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ user.cpp:34:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ksecv3.in", "r", stdin); ^ user.cpp:36:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &k); ^ user.cpp:40:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms436kbOK10
20ms436kbOK10
30ms436kbOK10
40ms412kbIncorect0
54ms428kbOK10
64ms436kbOK10
736ms436kbOK10
888ms432kbOK10
932ms436kbOK10
1016ms420kbOK10
Punctaj total90

Ceva nu functioneaza?