Borderou de evaluare (job #1768849)

Utilizator iulianrotaruRotaru Gheorghe-Iulian iulianrotaru Data 1 octombrie 2016 15:43:15
Problema Bile5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:33:17: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld", &T); ^ user.cpp:36:18: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld", &N); ^ user.cpp:57:139: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] fprintf(stderr, "0 (y=%ld) => +1 ; platou: %d - %d (y=%ld); -1 => xmax=%d (y=%ld); %d\n", y_, x1 - d1, x2 + d2, yx1, xmax, y2, (y2 > y_)); ^ user.cpp:57:139: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘int’ [-Wformat=] user.cpp:57:139: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 8 has type ‘int’ [-Wformat=] user.cpp:59:26: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld\n", y_ + x); ^ user.cpp:61:23: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld\n", yx1); ^ user.cpp:63:35: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld\n", y2 + (xmax - x)); ^ user.cpp:31:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bile5.in", "r", stdin); ^ user.cpp:32:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bile5.out", "w", stdout); ^ user.cpp:33:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &T); ^ user.cpp:36:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &N); ^ user.cpp:38:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &S[i], &P[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms440kbOK10
20ms444kbOK10
30ms444kbOK10
44ms448kbOK10
516ms460kbOK10
680ms508kbOK10
7100ms552kbOK10
8132ms560kbOK10
9128ms552kbOK10
10124ms556kbOK10
Punctaj total100

Ceva nu functioneaza?