0_0_22220912_12160.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include <cstdio>
^
0_0_22220912_12160.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include <cstring>
^
0_0_22220912_12160.cpp:3:7: error: expected identifier before '&' token
struct Node{
^
0_0_22220912_12160.cpp:3:12: error: invalid type in declaration before ';' token
struct Node{
^
0_0_22220912_12160.cpp:3:12: error: 'nbsp' declared as reference but not initialized
0_0_22220912_12160.cpp:3:13: error: 'Node' does not name a type
struct Node{
^
0_0_22220912_12160.cpp:5:2: error: 'a' does not name a type
}a[10002];
^
0_0_22220912_12160.cpp:6:5: error: redefinition of 'int& nbsp'
int find(int n){
^
0_0_22220912_12160.cpp:3:8: note: 'int& nbsp' previously declared here
struct Node{
^
0_0_22220912_12160.cpp:6:23: error: expected ')' before ';' token
int find(int n){
^
0_0_22220912_12160.cpp:6:23: error: expected constructor, destructor, or type conversion before ';' token
0_0_22220912_12160.cpp:6:24: error: 'n' does not name a type
int find(int n){
^
0_0_22220912_12160.cpp:20:6: error: cannot declare reference to 'void'
void Union(int root1,int root2){
^
0_0_22220912_12160.cpp:20:6: error: variable or field 'nbsp' declared void
0_0_22220912_12160.cpp:20:25: error: expected ')' before ';' token
void Union(int root1,int root2){
^
0_0_22220912_12160.cpp:20:25: error: expected constructor, destructor, or type conversion before ';' token
0_0_22220912_12160.cpp:20:26: error: 'root1' does not name a type
void Union(int root1,int root2){
^
0_0_22220912_12160.cpp:20:41: error: 'root2' does not name a type
void Union(int root1,int root2){
^
0_0_22220912_12160.cpp:35:5: error: redefinition of 'int& nbsp'
int main()
^
0_0_22220912_12160.cpp:3:8: note: 'int& nbsp' previously declared here
struct Node{
^
0_0_22220912_12160.cpp: In function 'int main()':
0_0_22220912_12160.cpp:37:53: error: 'nbsp' declared as reference but not initialized
int n,m,i,j;
^
0_0_22220912_12160.cpp:37:58: error: 'n' was not declared in this scope
int n,m,i,j;
^
0_0_22220912_12160.cpp:37:60: error: 'm' was not declared in this scope
int n,m,i,j;
^
0_0_22220912_12160.cpp:37:62: error: 'i' was not declared in this scope
int n,m,i,j;
^
0_0_22220912_12160.cpp:37:64: error: 'j' was not declared in this scope
int n,m,i,j;
^
0_0_22220912_12160.cpp:38:54: error: conflicting declaration 'bool& nbsp'
bool flag = false;
^
0_0_22220912_12160.cpp:37:53: note: previous declaration as 'int& nbsp'
int n,m,i,j;
^
0_0_22220912_12160.cpp:38:59: error: 'flag' was not declared in this scope
bool flag = false;
^
0_0_22220912_12160.cpp:38:69: error: expected primary-expression before '=' token
bool flag = false;
^
0_0_22220912_12160.cpp:39:67: error: 'scanf' was not declared in this scope
scanf("%d%d",&n,&m);
^
0_0_22220912_12160.cpp:40:60: error: expected primary-expression before '=' token
for(i = 0;i < n; ++i){
^
0_0_22220912_12160.cpp:40:68: error: expected ')' before ';' token
for(i = 0;i < n; ++i){
^
0_0_22220912_12160.cpp:40:76: error: expected primary-expression before '<' token
for(i = 0;i < n; ++i){
^
0_0_22220912_12160.cpp:46:106: error: 'Union' was not declared in this scope
Union(i,j);
^
0_0_22220912_12160.cpp:48:60: error: expected primary-expression before '=' token
for(i = 0;i < n; ++i)
^
0_0_22220912_12160.cpp:48:68: error: expected ')' before ';' token
for(i = 0;i < n; ++i)
^
0_0_22220912_12160.cpp:48:76: error: expected primary-expression before '<' token
for(i = 0;i < n; ++i)
^
0_0_22220912_12160.cpp:49:82: error: 'a' was not declared in this scope
if(a[i].num != 0) find(i);
^
0_0_22220912_12160.cpp:49:95: error: expected ')' before ';' token
if(a[i].num != 0) find(i);
^
0_0_22220912_12160.cpp:49:96: error: expected primary-expression before '!=' token
if(a[i].num != 0) find(i);
^
0_0_22220912_12160.cpp:49:105: error: expected ';' before ')' token
if(a[i].num != 0) find(i);
^
0_0_22220912_12160.cpp:49:118: error: 'find' was not declared in this scope
if(a[i].num != 0) find(i);
^
0_0_22220912_12160.cpp:50:60: error: expected primary-expression before '=' token
for(i = 0;i < n; i++)
^
0_0_22220912_12160.cpp:50:68: error: expected ')' before ';' token
for(i = 0;i < n; i++)
^
0_0_22220912_12160.cpp:50:76: error: expected primary-expression before '<' token
for(i = 0;i < n; i++)
^
0_0_22220912_12160.cpp:51:100: error: 'a' was not declared in this scope
if(a[i].num != 0){
^
0_0_22220912_12160.cpp:51:113: error: expected ')' before ';' token
if(a[i].num != 0){
^
0_0_22220912_12160.cpp:51:114: error: expected primary-expression before '!=' token
if(a[i].num != 0){
^
0_0_22220912_12160.cpp:51:123: error: expected ';' before ')' token
if(a[i].num != 0){
^
0_0_22220912_12160.cpp:55:84: error: 'printf' was not declared in this scope
if(flag) printf("IMPOSS
|