Borderou de evaluare (job #2201608)
Utilizator | Data | 5 mai 2018 11:54:47 | |
---|---|---|---|
Problema | Pamant | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(int, int)’:
user.cpp:22:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<=g[nod].size(); i++)
~^~~~~~~~~~~~~~~
user.cpp:37:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<=g[nod].size(); i++) if(h[g[nod][i]]==h[nod]+1) nr++;
~^~~~~~~~~~~~~~~
user.cpp:39:3: error: expected primary-expression before ‘}’ token
}
^
user.cpp: In function ‘int main()’:
user.cpp:43:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pamant.in","r",stdin);
^
user.cpp:44:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pamant.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !