Borderou de evaluare (job #1197562)

Utilizator paunmatei7FMI Paun Matei paunmatei7 Data 12 iunie 2014 18:31:05
Problema Emax 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:30:41: error: ‘max’ was not declared in this scope for(int j = i; j >= max(0, i - 3); --j){ ^ user.cpp:39:23: error: invalid type argument of unary ‘*’ (have ‘long long int’) Ans = ((LL) * Ans * (LL)(Sum[n] - Sum[Last[n])) % Mod; ^ user.cpp:39:54: error: expected ‘]’ before ‘)’ token Ans = ((LL) * Ans * (LL)(Sum[n] - Sum[Last[n])) % Mod; ^ user.cpp:15:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("emax.in", "r", stdin); ^ user.cpp:16:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("emax.out", "w", stdout); ^ user.cpp:17:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:19:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i]); ^

Ceva nu functioneaza?