Borderou de evaluare (job #2735345)
Utilizator | Jos da pa perete vans | Data | 2 aprilie 2021 11:57:01 |
---|---|---|---|
Problema | Pairs | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:15:71: error: 'max' was not declared in this scope
for(int i = 1; i <= n; ++i) scanf("%d", &x), ++fr[x], M = max(M, x);
^
main.cpp:12:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pairs.in", "r", stdin);
^
main.cpp:14:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !