Borderou de evaluare (job #2562449)

Utilizator XXMihaiXX969Gherghinescu Mihai Andrei XXMihaiXX969 Data 29 februarie 2020 14:29:05
Problema Lant Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int calcsimilitudine(char*, char*)': main.cpp:24:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i <= strlen(x); i++) ~~^~~~~~~~~~~~ main.cpp:25:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j <= strlen(y); j++) ~~^~~~~~~~~~~~ main.cpp:30:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < strlen(x); i++) ~~^~~~~~~~~~~ main.cpp:31:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < strlen(y); j++) ~~^~~~~~~~~~~ main.cpp:30:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int i = 0; i < strlen(x); i++) ^~~ main.cpp:37:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' cnt = strlen(x) + strlen(y) - 2 * lcs[strlen(x)][strlen(y)]; ^~~ main.cpp: In function 'void dfs(int)': main.cpp:50:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < l[x].size(); i++) ~~^~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:71:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation] while(s[poz][strlen(s[poz]) - 1] == ',' || s[poz][strlen(s[poz]) - 1] == ';' || s[poz][strlen(s[poz]) - 1] == ':' || s[poz][strlen(s[poz]) - 1] == '.' || s[poz][strlen(s[poz]) - 1] == '!' || s[poz][strlen(s[poz]) - 1] == '?' || s[poz][strlen(s[poz]) - 1] == '-') ^~~~~ main.cpp:74:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while' int cnt = 0; ^~~ main.cpp:79:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < strlen(cpy2); i++) ~~^~~~~~~~~~~~~~ main.cpp:93:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < strlen(cpy); j++) ~~^~~~~~~~~~~~~ main.cpp:133:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < strlen(cpy); j++) ~~^~~~~~~~~~~~~ main.cpp:149:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int i = 0; i < poz - 1; i++) ^~~ main.cpp:157:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' dfs(0); ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
110ms131kbOK10
29ms262kbOK10
38ms262kbOK10
45ms262kbOK10
53ms262kbOK10
63ms262kbOK10
72ms131kbOK10
833ms393kbOK10
99ms262kbOK10
1023ms393kbOK10
Punctaj total100

Ceva nu functioneaza?