Borderou de evaluare (job #2215332)
Utilizator | Data | 21 iunie 2018 17:54:53 | |
---|---|---|---|
Problema | Arbore3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:1:1: error: ‘include’ does not name a type
include <bits/stdc++.h>
^~~~~~~
user.cpp:4:1: error: ‘ifstream’ does not name a type
ifstream in("arbore3.in");
^~~~~~~~
user.cpp:5:1: error: ‘ofstream’ does not name a type
ofstream out("arbore3.out");
^~~~~~~~
user.cpp:11:1: error: ‘vector’ does not name a type
vector<int> gr[N_MAX + 2];
^~~~~~
user.cpp:14:1: error: ‘map’ does not name a type
map<int, int> freq;
^~~
user.cpp: In function ‘void dfs(int, int, int)’:
user.cpp:18:8: error: ‘freq’ was not declared in this scope
if(freq.find(sum - s) != freq.end())
^~~~
user.cpp:20:5: error: ‘freq’ was not declared in this scope
freq[sum]++;
^~~~
user.cpp:22:18: error: ‘gr’ was not declared in this scope
for(auto it: gr[node])
^~
user.cpp: In function ‘int main()’:
user.cpp:33:5: error: ‘in’ was not declared in this scope
in >> n >> s;
^~
user.cpp:39:9: error: ‘gr’ was not declared in this scope
gr[x].push_back(i);
^~
user.cpp:42:5: error: ‘freq’ was not declared in this scope
freq[0] = 1;
^~~~
user.cpp:45:5: error: ‘out’ was not declared in this scope
out << ans << '\n';
^~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !