Pagini recente » Borderou de evaluare (job #3142395) | Borderou de evaluare (job #1146524) | Borderou de evaluare (job #2791642) | Borderou de evaluare (job #2921163) | Borderou de evaluare (job #1977977)
Borderou de evaluare (job #1977977)
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 |
1 | 776ms | 106228kb | Incorect | 0 |
Punctaj total | 0 |