Borderou de evaluare (job #1785519)
Utilizator | Data | 21 octombrie 2016 14:39:35 | |
---|---|---|---|
Problema | Amici2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void BFS(int)’:
user.cpp:14:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<vec[nod].size();i++)
^
user.cpp: In function ‘int main()’:
user.cpp:58:20: error: ‘lunmax’ was not declared in this scope
coada[1]=1;lunmax=0;
^
user.cpp:65:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<=vec[i].size();j++)
^
user.cpp: In function ‘int calcul(int)’:
user.cpp:42:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:45:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("amici2.in","r",stdin);
^
user.cpp:46:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("amici2.out","w",stdout);
^
user.cpp:48:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&T);
^
user.cpp:51:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:54:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !