Borderou de evaluare (job #2232612)

Utilizator bostanmateiBostan Matei-Calin bostanmatei Data 20 august 2018 13:04:41
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:15:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &a); ^ user.cpp:20:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &a); ^ user.cpp:35:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d %d %d\n", smax, pm, u); ^ user.cpp:35:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] user.cpp:35:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long long int’ [-Wformat=] user.cpp:11:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ssm.in", "r", stdin); ^ user.cpp:12:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ssm.out", "w", stdout); ^ user.cpp:14:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:15:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a); ^ user.cpp:20:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms872kbIncorect0
20ms752kbIncorect0
30ms756kbIncorect0
40ms876kbIncorect0
50ms812kbIncorect0
60ms876kbIncorect0
74ms804kbIncorect0
88ms756kbIncorect0
924ms804kbIncorect0
1056ms876kbIncorect0
11116ms816kbIncorect0
12172ms800kbIncorect0
13224ms876kbIncorect0
14280ms800kbIncorect0
151232ms872kbIncorect0
161372ms860kbIncorect0
171364ms876kbIncorect0
181476ms752kbIncorect0
191452ms936kbIncorect0
201460ms752kbIncorect0
Punctaj total0

Ceva nu functioneaza?