Borderou de evaluare (job #2277935)

Utilizator Alex03Runcan Alexandru Alex03 Data 7 noiembrie 2018 07:51:25
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:4:20: error: expected ']' before ';' token #define MAXN 100005; ^ main.cpp:6:18: note: in expansion of macro 'MAXN' vector <int> adj[MAXN], con, idx, lowlink, in_stack; ^~~~ main.cpp:6:22: error: expected unqualified-id before ']' token vector <int> adj[MAXN], con, idx, lowlink, in_stack; ^ main.cpp:9:5: error: 'int index' redeclared as different kind of symbol int index; ^~~~~ In file included from /usr/include/c++/6/cstring:42:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48, from main.cpp:1: /usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)' index (const char *__s, int __c) __THROW ^~~~~ main.cpp: In function 'void read_in(std::vector<int>*, int&)': main.cpp:16:24: error: 'adj' was not declared in this scope fin >> x >> y, adj[x - 1].push_back(y - 1); ^~~ main.cpp: At global scope: main.cpp:20:17: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive] void print_out (const <vector < vector <int> >& G) ^~~~~ main.cpp:20:23: error: expected ',' or '...' before '<' token void print_out (const <vector < vector <int> >& G) ^ main.cpp: In function 'void print_out(int)': main.cpp:22:13: error: 'G' was not declared in this scope fout << G.siz() << '\n'; ^ main.cpp: In function 'void Tarjan(int, const std::vector<int>*)': main.cpp:33:5: error: 'idx' was not declared in this scope idx[n] = lowlink[n] = index; ^~~ main.cpp:33:14: error: 'lowlink' was not declared in this scope idx[n] = lowlink[n] = index; ^~~~~~~ main.cpp:34:10: error: no post-increment operator for type index++; ^~ main.cpp:35:16: error: 'in_stack' was not declared in this scope S.push(n), in_stack[n] = 1; ^~~~~~~~ main.cpp:37:21: error: expected unqualified-id before 'const' vector <int> :: const iterator it; ^~~~~ main.cpp:38:10: error: 'it' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?