Borderou de evaluare (job #2222502)
Utilizator | Data | 17 iulie 2018 10:08:52 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("bfs.in","r",stdin);
^
user.cpp:8:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("bfs.out","w",stdout);
^
user.cpp: In function ‘void bfs(int)’:
user.cpp:24:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<G[u].size();j++)
~^~~~~~~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:39:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&m,&s);
^
user.cpp:42:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&u,&v);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !