Borderou de evaluare (job #1197564)
| Utilizator | Data | 12 iunie 2014 18:33:37 | |
|---|---|---|---|
| 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: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?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
