Borderou de evaluare (job #2730036)

Utilizator popashtefan10Popa Stefan popashtefan10 Data 25 martie 2021 18:24:08
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void add_first(nod*, char*, int)': main.cpp:27:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(!root->fii[ nr(cuv[0]) ]); ^~ main.cpp:28:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' root->fii[ nr(cuv[0]) ] = new nod; ^~~~ main.cpp: In function 'int main()': main.cpp:69:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < strlen(cuv); j++) ~~^~~~~~~~~~~~~ main.cpp:72:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < strlen(cuv); j++) ~~^~~~~~~~~~~~~ main.cpp:79:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < strlen(cuv); j++) ~~^~~~~~~~~~~~~ main.cpp:59:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("sub.in", "r", stdin); ^ main.cpp:60:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("sub.out", "w", stdout); ^ main.cpp:65:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &na); ^ main.cpp:67:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%s ", cuv); ^ main.cpp:76:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &nb); ^ main.cpp:78:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%s ", cuv); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbIncorect0
23ms262kbIncorect0
33ms393kbIncorect0
45ms1310kbIncorect0
511ms2621kbIncorect0
611ms2752kbIncorect0
743ms10092kbIncorect0
845ms10223kbIncorect0
937ms10223kbIncorect0
1035ms9830kbIncorect0
Punctaj total0

Ceva nu functioneaza?