Borderou de evaluare (job #2553395)

Utilizator TAndreiTamas Andrei TAndrei Data 21 februarie 2020 21:59:22
Problema Interesant Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:17:18: warning: array subscript has type 'char' [-Wchar-subscripts] in >> a[i]; ^ main.cpp:23:26: warning: array subscript has type 'char' [-Wchar-subscripts] if(strlen(a[i]) > strlen(max)) ^ main.cpp:24:32: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(max, a[i]); ^ main.cpp:25:31: warning: array subscript has type 'char' [-Wchar-subscripts] else if(strlen(a[i]) == strlen(max)) ^ main.cpp:26:38: warning: array subscript has type 'char' [-Wchar-subscripts] for(j=0; j<strlen(a[i]); j++) ^ main.cpp:26:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0; j<strlen(a[i]); j++) ~^~~~~~~~~~~~~ main.cpp:27:34: warning: array subscript has type 'char' [-Wchar-subscripts] if(max[j]>a[i][j]) ^ main.cpp:29:40: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(max, a[i]); ^ main.cpp:45:38: warning: array subscript has type 'char' [-Wchar-subscripts] for(k=0; k<strlen(a[i]); k++) ^ main.cpp:45:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(k=0; k<strlen(a[i]); k++) ~^~~~~~~~~~~~~ main.cpp:46:40: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr(a[j], a[i][k])) ^ main.cpp:46:43: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr(a[j], a[i][k])) ^ main.cpp:48:38: warning: array subscript has type 'char' [-Wchar-subscripts] if(contor==strlen(a[i])) ^ main.cpp:48:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(contor==strlen(a[i])) ~~~~~~^~~~~~~~~~~~~~ main.cpp:56:40: warning: array subscript has type 'char' [-Wchar-subscripts] for(j=i+1; j<strlen(a[i]); j++) ^ main.cpp:56:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=i+1; j<strlen(a[i]); j++) ~^~~~~~~~~~~~~ main.cpp:59:42: warning: array subscript has type 'char' [-Wchar-subscripts]
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
13ms393kbOK.50
23ms393kbIncorect.0
33ms262kbOK.5
43ms393kbIncorect.0
55ms262kbKilled by Signal 1100
613ms393kbKilled by Signal 1100
75ms131kbKilled by Signal 1100
813ms393kbKilled by Signal 1100
915ms393kbKilled by Signal 1100
107ms393kbKilled by Signal 1100
1116ms393kbKilled by Signal 1100
1215ms393kbKilled by Signal 1100
1312ms393kbKilled by Signal 1100
1411ms393kbKilled by Signal 1100
1515ms393kbKilled by Signal 1100
1613ms393kbKilled by Signal 1100
1716ms393kbKilled by Signal 1100
1812ms393kbKilled by Signal 1100
1915ms393kbKilled by Signal 1100
2014ms393kbKilled by Signal 1100
2115ms393kbKilled by Signal 1100
2214ms393kbKilled by Signal 1100
Punctaj total0

Ceva nu functioneaza?