Borderou de evaluare (job #2062341)

Utilizator BeniLehelBeni Lehel BeniLehel Data 10 noiembrie 2017 11:40:42
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:11:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d", &t[i]); ^ user.cpp:37:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d ", t[min[1]]); ^ user.cpp:25:6: warning: variable ‘max’ set but not used [-Wunused-but-set-variable] int max = -1; ^ user.cpp:7:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("in.txt", "r", stdin); ^ user.cpp:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("scmax.out", "w", stdout); ^ user.cpp:9:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:11:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms1012kbLungime incorecta!00
20ms1016kbLungime incorecta!00
30ms1012kbLungime incorecta!00
40ms1012kbLungime incorecta!00
50ms1016kbLungime incorecta!00
60ms1008kbLungime incorecta!00
70ms1012kbLungime incorecta!00
80ms1016kbLungime incorecta!00
90ms1012kbLungime incorecta!0
100ms1016kbLungime incorecta!0
Punctaj total0

Ceva nu functioneaza?