Borderou de evaluare (job #2019916)

Utilizator victoreVictor Popa victore Data 8 septembrie 2017 20:18:10
Problema Pari Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘bool dfs(int)’: user.cpp:43:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<g[node].size();++i) ^ user.cpp: In function ‘int main()’: user.cpp:95:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<g[i].size();++j) ^ user.cpp:59:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pari.in","r",stdin); ^ user.cpp:60:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pari.out","w",stdout); ^ user.cpp:62:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&d); ^ user.cpp:66:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&x); ^ user.cpp:68:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); ^ /tmp/ccUH27Qr.o: In function `main': user.cpp:(.text.startup+0xc3): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms428kbIndex inexistent!0
20ms448kbRaspuns corect10
30ms448kbRaspuns corect10
40ms448kbIndex inexistent!0
50ms428kbIndex inexistent!0
64ms428kbIndex inexistent!0
720ms512kbRaspuns corect10
88ms432kbIndex inexistent!0
912ms424kbIndex inexistent!0
1016ms432kbIndex inexistent!0
Punctaj total30

Ceva nu functioneaza?