Borderou de evaluare (job #596560)

Utilizator avatar Lusian afa andrei Lusian IP ascuns
Problemă Cuvant (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 19 apr. 2021 21:18:56 Scor 10

Raport evaluator

Compilare: main.cpp: In function 'void trans(int)': main.cpp:10:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 10 | while(x < strlen(a[i])){ | ~~^~~~~~~~~~~~~~ main.cpp:11:24: warning: passing argument 1 to 'restrict'-qualified parameter aliases with argument 2 [-Wrestrict] 11 | strncat(a[i],a[i],1); | ~~~^ ~~~~ main.cpp: In function 'int main()': main.cpp:38:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 38 | for(int i = 1 ; i <= nr ; i++) | ^~~ main.cpp:45:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 45 | return 0; | ^~~~~~ In file included from /usr/include/string.h:519, from /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/include/g++-v10/cstring:42, from /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/include/g++-v10/i686-pc-linux-gnu/bits/stdc++.h:48, from main.cpp:1: In function 'char* strncat(char*, const char*, size_t)', inlined from 'void trans(int)' at main.cpp:11:20: /usr/include/bits/string_fortified.h:122:34: warning: 'char* __builtin_strncat(char*, const char*, unsigned int)' source argument is the same as destination [-Wrestrict] 122 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'char* strcpy(char*, const char*)', inlined from 'void trans(int)' at main.cpp:12:19: /usr/include/bits/string_fortified.h:75:33: warning: 'char* __builtin_strcpy(char*, const char*)' accessing 1 byte at offsets [0, 360] and [0, 360] overlaps 1 byte at offset [0, 359] [-Wrestrict] 75 | return __builtin___strcpy_chk (__dest, __src, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 262 kb Incorect 0
2 1 ms 262 kb OK 10
3 1 ms 262 kb Incorect 0
4 1 ms 262 kb Incorect 0
5 2 ms 262 kb Incorect 0
6 1 ms 262 kb Incorect 0
7 1 ms 262 kb Incorect 0
8 1 ms 262 kb Incorect 0
9 1 ms 262 kb Incorect 0
10 2 ms 262 kb Incorect 0
Punctaj total 10