Borderou de evaluare (job #2777285)

Utilizator RaresFelixTudose Rares Felix RaresFelix Data 22 septembrie 2021 19:46:27
Problema Ninjago Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:51:36: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=] scanf("%ld%ld%ld", &tip, &n, &m); ^ main.cpp:51:36: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'll* {aka long long int*}' [-Wformat=] main.cpp:51:36: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'll* {aka long long int*}' [-Wformat=] main.cpp:54:31: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=] scanf("%ld%ld", &u, &v); ^ main.cpp:54:31: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'll* {aka long long int*}' [-Wformat=] main.cpp:64:27: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'll {aka long long int}' [-Wformat=] printf("%ld\n", re); ^ main.cpp:79:51: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'll {aka long long int}' [-Wformat=] if(tip == 2) printf("%ld\n%ld\n", re1, re2); ^ main.cpp:79:51: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'll {aka long long int}' [-Wformat=] main.cpp:80:33: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'll {aka long long int}' [-Wformat=] else printf("%ld\n", re3); ^ main.cpp: In function 'll cost()': main.cpp:40:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%s", CO); ^ main.cpp: In function 'int main()': main.cpp:49:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("ninjago.in", "r", stdin); ^ main.cpp:50:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("ninjago.out", "w", stdout); ^ main.cpp:51:37: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld%ld", &tip, &n, &m); ^ main.cpp:54:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld", &u, &v); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms917kbCorect!2
234ms2678kbCorect!2
346ms4382kbCorect!2
44ms917kbCorect!2
54ms917kbCorect!2
643ms3203kbCorect!2
74ms917kbCorect!2
840ms3391kbCorect!2
934ms2678kbCorect!2
1042ms3203kbCorect!2
115ms1441kbCorect4
1237ms3203kbCorect4
1345ms3596kbCorect4
145ms1441kbCorect4
156ms1441kbCorect4
1651ms3596kbCorect4
176ms1441kbCorect4
1848ms3653kbCorect4
1942ms3203kbCorect4
2052ms3727kbCorect4
215ms1441kbCorect!3
2237ms3203kbCorect!3
2345ms3596kbCorect!3
245ms1441kbCorect!3
256ms1441kbCorect!3
2651ms3596kbCorect!3
276ms1441kbCorect!3
2848ms3653kbCorect!3
2942ms3203kbCorect!3
3052ms3727kbCorect!3
314ms917kbCorect! (Exemplu)10
Punctaj total100

Ceva nu functioneaza?