Borderou de evaluare (job #1977977)

Utilizator eukristianCristian L. eukristian Data 6 mai 2017 16:48:16
Problema Facebook Search Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void update(TrieNode*, char*, int)’: user.cpp:77:77: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] || root->children[cidx]->maxRelChild->rel == root->maxRelChild->rel && ^ user.cpp: In function ‘int main()’: user.cpp:123:36: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[33]’ [-Wformat=] scanf("%s\n", &users[i]); ^ user.cpp:136:35: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[33]’ [-Wformat=] scanf("%s\n", &str); ^ user.cpp:150:44: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[33]’ [-Wformat=] scanf("%s %d\n", &str, &rel); ^ user.cpp:109:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("fbsearch.in", "r", stdin); ^ user.cpp:110:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("fbsearch.out", "w", stdout); ^ user.cpp:113:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &t); ^ user.cpp:117:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &n, &m); ^ user.cpp:123:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", &users[i]); ^ user.cpp:132:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c", &op); ^ user.cpp:136:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", &str); ^ user.cpp:150:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s %d\n", &str, &rel); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1776ms106228kbIncorect0
Punctaj total0

Ceva nu functioneaza?