Borderou de evaluare (job #3218875)
Utilizator | Data | 28 martie 2024 14:29:15 | |
---|---|---|---|
Problema | Pamant | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:18:6: error: 'mt19937' in namespace 'std' does not name a type
18 | std::mt19937 mersenne{ static_cast<std::mt19937::result_type>(std::time(nullptr)) };
| ^~~~~~~
main.cpp: In function 'int main()':
main.cpp:89:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
89 | for (int i = 0; i < (int) con.size(); ++ i)
| ^~~
main.cpp:90:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
90 | out << con[i] << " "; out << "\n";
| ^~~
main.cpp:94:11: error: 'mersenne' was not declared in this scope
94 | if(nr(mersenne) == 1)
| ^~~~~~~~
main.cpp:95:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
95 | for (int i = 0; i < (int) ans.size(); ++ i)
| ^~~
main.cpp:96:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
96 | out << ans[i] << " "; out << "\n";
| ^~~
main.cpp:97:5: error: 'else' without a previous 'if'
97 | else
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !