Borderou de evaluare (job #1824713)

Utilizator daniel.grosuDaniel Grosu daniel.grosu Data 8 decembrie 2016 12:22:07
Problema NN Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:27:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘LD* {aka long double*}’ [-Wformat=] scanf("%d%d", &a, &b); ^ user.cpp:27:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘LD* {aka long double*}’ [-Wformat=] user.cpp:35:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘LD* {aka long double*}’ [-Wformat=] scanf("%d%d%d%d", &a, &b, &x, &y); ^ user.cpp:35:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘LD* {aka long double*}’ [-Wformat=] user.cpp:35:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘LD* {aka long double*}’ [-Wformat=] user.cpp:35:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘LD* {aka long double*}’ [-Wformat=] user.cpp:20:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nn.in", "rt", stdin); ^ user.cpp:21:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nn.out", "wt", stdout); ^ user.cpp:24:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &q); ^ user.cpp:27:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &a, &b); ^ user.cpp:35:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d", &a, &b, &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms488kbOK10
24ms516kbOK10
34ms512kbOK10
44ms508kbOK10
54ms520kbOK10
6228ms1796kbOK10
7436ms2756kbOK10
8488ms3032kbOK10
9244ms1780kbOK10
10572ms3420kbOK10
Punctaj total100

Ceva nu functioneaza?