Borderou de evaluare (job #2186064)
Utilizator | Data | 25 martie 2018 12:21:06 | |
---|---|---|---|
Problema | Dedicatie | Status | done |
Runda | Agm 2018 Runda 2 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:6: error: ‘vector’ in namespace ‘std’ does not name a template type
std::vector < int > g[MAXN];
^~~~~~
user.cpp: In function ‘void dfs2(int)’:
user.cpp:34:20: error: ‘g’ was not declared in this scope
for (auto &y : g[x]) {
^
user.cpp: In function ‘void dfs1(int)’:
user.cpp:46:20: error: ‘g’ was not declared in this scope
for (auto &y : g[x]) {
^
user.cpp: In function ‘int main()’:
user.cpp:60:9: error: ‘g’ was not declared in this scope
g[a[i]].push_back(i);
^
user.cpp:56:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &n);
^
user.cpp:59:42: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d", &a[i], &b[i]);
^
user.cpp:77:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !