0_0_13811357_11736.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13811357_11736.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13811357_11736.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13811357_11736.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13811357_11736.cpp: In member function 'void Edge::Read()':
0_0_13811357_11736.cpp:13:21: error: 'scanf' was not declared in this scope
scanf("%d%d",&x,&y);
^
0_0_13811357_11736.cpp: In function 'void BuildTree(int, int)':
0_0_13811357_11736.cpp:36:12: error: expected ']' before numeric constant
edge[i 1].tree_edge = true;
^
0_0_13811357_11736.cpp:36:12: error: expected ';' before numeric constant
0_0_13811357_11736.cpp: In function 'void DFS(int, int)':
0_0_13811357_11736.cpp:44:14: error: expected ']' before numeric constant
if(edge[i 1].tree_edge && aim[i] != last) {
^
0_0_13811357_11736.cpp:44:14: error: expected ')' before numeric constant
0_0_13811357_11736.cpp:44:14: error: could not convert 'edge[i]' from 'Edge' to 'bool'
0_0_13811357_11736.cpp:44:15: error: expected primary-expression before ']' token
if(edge[i 1].tree_edge && aim[i] != last) {
^
0_0_13811357_11736.cpp: In function 'bool GaussElimination(int)':
0_0_13811357_11736.cpp:56:16: error: lvalue required as left operand of assignment
for(int j = 1 = 1) {
^
0_0_13811357_11736.cpp:66:2: error: expected ';' before 'return'
return temp[cnt];
^
0_0_13811357_11736.cpp:66:2: error: expected primary-expression before 'return'
0_0_13811357_11736.cpp:66:2: error: expected ';' before 'return'
0_0_13811357_11736.cpp:66:2: error: expected primary-expression before 'return'
0_0_13811357_11736.cpp:66:2: error: expected ')' before 'return'
0_0_13811357_11736.cpp: In function 'int main()':
0_0_13811357_11736.cpp:71:16: error: 'srand' was not declared in this scope
srand(19970815);
^
0_0_13811357_11736.cpp:72:2: error: 'cin' was not declared in this scope
cin points edges;
^
0_0_13811357_11736.cpp:74:3: error: expected ';' before 'edge'
edge[i].Read();
^
0_0_13811357_11736.cpp:74:17: error: expected ')' before ';' token
edge[i].Read();
^
0_0_13811357_11736.cpp:75:12: error: 'i' was not declared in this scope
Add(edge[i].x,edge[i].y);
^
0_0_13811357_11736.cpp: At global scope:
0_0_13811357_11736.cpp:78:11: error: expected constructor, destructor, or type conversion before '(' token
BuildTree(1,0);
^
0_0_13811357_11736.cpp:79:2: error: expected unqualified-id before 'for'
for(int i = 1; i
^
0_0_13811357_11736.cpp:79:17: error: 'i' does not name a type
for(int i = 1; i
^
0_0_13811357_11736.cpp:85:5: error: expected constructor, destructor, or type conversion before '(' token
DFS(1,0);
^
0_0_13811357_11736.cpp:86:2: error: 'cin' does not name a type
cin asks;
^
0_0_13811357_11736.cpp:88:2: error: expected unqualified-id before 'for'
for(int cnt,x,i = 1; i
^
0_0_13811357_11736.cpp:88:23: error: 'i' does not name a type
for(int cnt,x,i = 1; i
^
0_0_13811357_11736.cpp:91:3: error: expected unqualified-id before 'for'
for(int j = 1; j
^
0_0_13811357_11736.cpp:91:18: error: 'j' does not name a type
for(int j = 1; j
^
0_0_13811357_11736.cpp:93:4: error: 'x' does not name a type
x ^= last_ans;
^
0_0_13811357_11736.cpp:94:4: error: 'temp' does not name a type
temp[j] = edge[x].len;
^
0_0_13811357_11736.cpp:95:3: error: expected declaration before '}' token
}
^
|