Borderou de evaluare (job #1233892)
Utilizator | Data | 26 septembrie 2014 11:42:06 | |
---|---|---|---|
Problema | Paduri de multimi disjuncte | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:24:21: error: expected ‘,’ or ‘...’ before ‘int’
bool same_set(int a int b)
^
user.cpp: In function ‘bool same_set(int)’:
user.cpp:26:36: error: ‘b’ was not declared in this scope
return find_tata(a)==find_tata(b);
^
user.cpp: In function ‘int main()’:
user.cpp:32:18: error: expected unqualified-id before ‘;’ token
int i,op,a,b,;
^
user.cpp:35:9: error: ‘v’ was not declared in this scope
v[i]=i,rang[i]=1;
^
user.cpp:42:28: error: too many arguments to function ‘bool same_set(int)’
if(same_set(a,b))
^
user.cpp:24:6: note: declared here
bool same_set(int a int b)
^
user.cpp: In function ‘bool same_set(int)’:
user.cpp:27:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:30:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("disjoint.in","r",stdin);
^
user.cpp:31:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("disjoint.out","w",stdout);
^
user.cpp:33:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&p);
^
user.cpp:38:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&op,&a,&b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !