Borderou de evaluare (job #2560981)

Utilizator rebecca0312Andrei Rebecca rebecca0312 Data 28 februarie 2020 13:59:29
Problema Text3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:22:25: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[40]' [-Wformat=] while(scanf("%s", &s[c])>0){ ^ main.cpp:32:12: warning: array subscript has type 'char' [-Wchar-subscripts] if(C[A[i]]){ ^ main.cpp:33:17: warning: array subscript has type 'char' [-Wchar-subscripts] L[i]=L[C[A[i]]]+1; ^ main.cpp:34:15: warning: array subscript has type 'char' [-Wchar-subscripts] T[i]=C[A[i]]; ^ main.cpp:40:14: warning: array subscript has type 'char' [-Wchar-subscripts] if(L[C[B[i]]]<L[i]) ^ main.cpp:41:10: warning: array subscript has type 'char' [-Wchar-subscripts] C[B[i]]=i; ^ main.cpp:19:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("text3.in", "r", stdin); ^ main.cpp:20:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("text3.out", "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms262kbCorect10
23ms262kbCorect10
32ms131kbCorect10
42ms131kbCorect10
55ms655kbCorect10
68ms917kbCorect10
72ms131kbCorect10
812ms1310kbCorect10
93ms262kbCorect10
103ms262kbCorect10
Punctaj total100

Ceva nu functioneaza?