Borderou de evaluare (job #2678042)

Utilizator butasebiButa Gabriel-Sebastian butasebi Data 27 noiembrie 2020 23:34:36
Problema Ghiozdan Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 70

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:9:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d %d", &n, &G); ^ main.cpp:9:26: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=] main.cpp:12:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d", &g[i]); ^ main.cpp:20:37: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d %d\n", maxx, dp[maxx]); ^ main.cpp:20:37: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] main.cpp:24:36: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d\n", maxx - i); ^ main.cpp:7:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("ghiozdan.in", "r", stdin); ^ main.cpp:8:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("ghiozdan.out", "w", stdout); ^ main.cpp:9:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &G); ^ main.cpp:12:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &g[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
22ms131kbOK10
322ms262kbOK10
4902ms655kbOK10
5134ms655kbOK10
6136ms262kbOK10
7864ms655kbOK10
82002ms786kbTime limit exceeded0
92001ms917kbTime limit exceeded0
102000ms917kbTime limit exceeded0
Punctaj total70

Ceva nu functioneaza?