Borderou de evaluare (job #2632622)

Utilizator RobertLearnsCDragomir Robert. RobertLearnsC Data 4 iulie 2020 09:48:52
Problema Antivirus Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void read()': main.cpp:12:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d%d", &n, &k); ^ main.cpp:12:25: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=] main.cpp:14:29: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d", &cost[i]); ^ main.cpp: In function 'void print()': main.cpp:38:28: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d\n", dp[k][n]); ^ main.cpp: In function 'int main()': main.cpp:45:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d", &tests); ^ main.cpp: In function 'void read()': main.cpp:12:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &k); ^ main.cpp:14:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &cost[i]); ^ main.cpp: In function 'int main()': main.cpp:42:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("antivirus.in", "r", stdin); ^ main.cpp:43:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("antivirus.out", "w", stdout); ^ main.cpp:45:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &tests); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms524kbOK10
24ms1048kbOK10
34ms1048kbOK10
465ms20316kbOK10
583ms20316kbOK10
6251ms26214kbOK10
7231ms26214kbOK10
8259ms26345kbOK10
9268ms26214kbOK10
10252ms26337kbOK10
Punctaj total100

Ceva nu functioneaza?