Borderou de evaluare (job #1462547)

Utilizator theprdvtheprdv theprdv Data 18 iulie 2015 15:11:47
Problema Take 5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:33: error: size of array ‘s’ is too large int N, v[MAXN], ans, s[800000001], s2[800000001]; ^ user.cpp:10:48: error: size of array ‘s2’ is too large int N, v[MAXN], ans, s[800000001], s2[800000001]; ^ user.cpp: In function ‘int main()’: user.cpp:24:18: warning: unused variable ‘key’ [-Wunused-variable] for (int i = 1, key; i <= N; ++i){ ^ user.cpp:20:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("take5.in", "r", stdin); ^ user.cpp:21:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("take5.out", "w", stdout); ^ user.cpp:23:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %llu", &N, &S); ^ user.cpp:25:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^

Ceva nu functioneaza?