Borderou de evaluare (job #2589815)
Utilizator | Data | 26 martie 2020 22:09:11 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:18:1: error: 'mt19937' does not name a type
mt19937 rng(228);
^~~~~~~
main.cpp: In function 'std::vector<int> solve(std::vector<int>)':
main.cpp:21:31: error: 'rng' was not declared in this scope
shuffle(a.begin(), a.end(), rng);
^~~
main.cpp: In function 'std::vector<int> read()':
main.cpp:10:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:13:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^
main.cpp: In function 'int main()':
main.cpp:46:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("algsort.in", "r", stdin);
^
main.cpp:47:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("algsort.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !