Borderou de evaluare (job #1570862)

Utilizator catu_bogdan_99Catu Bogdan catu_bogdan_99 Data 16 ianuarie 2016 21:35:11
Problema Logic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:68:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( i = 0; i < strlen(v); ++i ){ ^ user.cpp:70:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( adv[v[i]] == 0 ){ ^ user.cpp:74:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] adv[v[i]]++; ^ user.cpp:78:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( i = 0; i < strlen(q); ++i ) ^ user.cpp:79:54: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( 'a' <= q[i] && q[i] <= 'z' ) adv[q[i]] = 0; ^ user.cpp:57:15: warning: unused variable ‘j’ [-Wunused-variable] int n, i, j, r, okk, varaibile; ^ user.cpp: In function ‘int f4(char*)’: user.cpp:168:64: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( 'a' <= p[indi] && p[indi] <= 'z' ) r = alfabet[p[indi]]; ^ user.cpp: In function ‘int main()’: user.cpp:54:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("logic.in","r",stdin); ^ user.cpp:55:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("logic.out","w",stdout); ^ user.cpp:59:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:65:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",v); ^ user.cpp:66:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",q); ^ user.cpp: In function ‘int f4(char*)’: user.cpp:155:9: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] int r; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK10
20ms268kbOK10
30ms268kbOK10
40ms264kbOK10
58ms268kbOK10
60ms268kbOK10
70ms268kbOK10
80ms260kbOK10
90ms264kbOK10
100ms260kbOK10
Punctaj total100

Ceva nu functioneaza?