Borderou de evaluare (job #2856881)
Utilizator | Data | 24 februarie 2022 15:09:49 | |
---|---|---|---|
Problema | Asmax | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:1: error: 'ifstream' does not name a type
4 | ifstream fin("asmax.in");
| ^~~~~~~~
main.cpp:5:1: error: 'ofstream' does not name a type
5 | ofstream fout("asmax.out");
| ^~~~~~~~
main.cpp:12:1: error: 'vector' does not name a type
12 | vector <int>G[NMAX + 5];
| ^~~~~~
main.cpp: In function 'long long int dfs(int)':
main.cpp:19:20: error: 'G' was not declared in this scope
19 | for (auto it : G[x])
| ^
main.cpp:23:18: error: 'max' was not declared in this scope; did you mean 'std::max'?
23 | s += max(dfs(it), 0LL);
| ^~~
| std::max
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: 'std::max' declared here
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
main.cpp: In function 'int main()':
main.cpp:33:5: error: 'fin' was not declared in this scope
33 | fin >> n;
| ^~~
main.cpp:41:9: error: 'G' was not declared in this scope
41 | G[x].push_back(y);
| ^
main.cpp:52:5: error: 'fout' was not declared in this scope
52 | fout << x;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !