Borderou de evaluare (job #1751680)

Utilizator bciobanuBogdan Ciobanu bciobanu Data 1 septembrie 2016 18:40:47
Problema Nrsec Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:56:38: error: ‘n’ was not declared in this scope long long lo = *min_element(v, v + n) - *max_element(v, v + n) - 1; ^ user.cpp:47:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nrsec.in", "r", stdin); ^ user.cpp:48:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nrsec.out", "w", stdout); ^ user.cpp:52:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %lld", &N, &K); ^ user.cpp:54:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", v + i); ^

Ceva nu functioneaza?