Borderou de evaluare (job #2671637)
Utilizator | Data | 12 noiembrie 2020 14:54:43 | |
---|---|---|---|
Problema | Petrica | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:1: error: 'vector' does not name a type
vector<int> graph[NMAX];
^~~~~~
main.cpp: In function 'void dfs(int)':
main.cpp:23:23: error: 'graph' was not declared in this scope
for(auto neight : graph[node]) {
^~~~~
main.cpp: In function 'int main()':
main.cpp:44:9: error: 'graph' was not declared in this scope
graph[a].push_back(b);
^~~~~
main.cpp:37:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:39:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
main.cpp:43:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a, &b);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !