Borderou de evaluare (job #1886395)
Utilizator | Data | 20 februarie 2017 20:59:38 | |
---|---|---|---|
Problema | Easygraph | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void citeste()’:
user.cpp:18:25: error: ‘c’ was not declared in this scope
fscanf(f1,"%d",&c[i]);
^
user.cpp:24:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<graf[a].size();j++)
^
user.cpp: In function ‘void sorttop(int)’:
user.cpp:48:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<graf[x].size();i++)
^
user.cpp: In function ‘int calc(int)’:
user.cpp:61:12: error: ‘c’ was not declared in this scope
return c[x]+bst;
^
user.cpp: In function ‘void citeste()’:
user.cpp:16:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d%d",&n,&m);
^
user.cpp:21:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d%d",&a,&b);
^
user.cpp: In function ‘int calc(int)’:
user.cpp:62:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:69:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d",&t);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !