Borderou de evaluare (job #3354972)
| Utilizator | Data | 21 mai 2026 14:25:20 | |
|---|---|---|---|
| Problema | Berarii2 | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:8:1: error: 'ifstream' does not name a type
8 | ifstream fcin("berarii2.in");
| ^~~~~~~~
main.cpp:9:1: error: 'ofstream' does not name a type
9 | ofstream fcout("berarii2.out");
| ^~~~~~~~
main.cpp: In function 'std::set<int> berarii2(std::vector<std::vector<int> >, std::vector<int>)':
main.cpp:45:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for( int i = 1 ; i < graph.size(); i ++ ) {
| ~~^~~~~~~~~~~~~~
main.cpp:47:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | for ( int j = 0 ; j < berarii.size(); j ++ ) {
| ~~^~~~~~~~~~~~~~~~
main.cpp:49:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for ( int k = 0 ; k < harta.size() ; k ++ ) {
| ~~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:62:5: error: 'fcin' was not declared in this scope
62 | fcin >> n >> m >> p;
| ^~~~
main.cpp:81:5: error: 'fcout' was not declared in this scope
81 | fcout << solution.size() << "\n";
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
