Borderou de evaluare (job #2395670)
| Utilizator | Data | 2 aprilie 2019 19:32:12 | |
|---|---|---|---|
| Problema | Componente tare conexe | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:9:5: error: 'int index' redeclared as different kind of symbol
int index=1;
^~~~~
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 tare_conexe(int)':
main.cpp:17:11: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
d[node]=index;
^~~~~
main.cpp:18:11: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
l[node]=index;
^~~~~
main.cpp:19:8: error: no post-increment operator for type
index++;
^~
main.cpp:22:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<G[node].size();i++){
~^~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:52:10: warning: statement has no effect [-Wunused-value]
for(m;m>0;m--){
^
main.cpp:63:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<comp[i].size();j++){
~^~~~~~~~~~~~~~~
main.cpp:51:29: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&n,&m);
^
main.cpp:53:31: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&i,&j);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
