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