Borderou de evaluare (job #2210994)

Utilizator DordeDorde Matei Dorde Data 9 iunie 2018 00:39:13
Problema Zimeria Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int conv(char*)’: user.cpp:18:11: warning: statement has no effect [-Wunused-value] for(p ; p >= a ; -- p , w *= 12) ^ user.cpp:21:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] val = val + (w * b [*p]); ^ user.cpp:20:14: warning: unused variable ‘x’ [-Wunused-variable] char x = *p; ^ user.cpp: In function ‘char inv(int)’: user.cpp:40:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:47:37: warning: format ‘%s’ expects argument of type ‘char*’, but argument 4 has type ‘char (*)[20]’ [-Wformat=] scanf ("%d %d %s" , &t , &n , &h); ^ user.cpp:49:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] b [*p] = i , b2 [i] = *p; ^ user.cpp:52:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[20]’ [-Wformat=] scanf ("%s" , &str); ^ user.cpp:43:30: warning: unused variable ‘j’ [-Wunused-variable] int n , i , t , c1 = 0 , j; ^ user.cpp:45:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen (in , "r" , stdin); ^ user.cpp:46:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen (out , "w" , stdout); ^ user.cpp:47:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d %s" , &t , &n , &h); ^ user.cpp:52:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%s" , &str); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms752kbOK5
20ms932kbOK5
316ms936kbOK5
432ms1044kbOK5
564ms1436kbOK5
6136ms2212kbOK5
70ms752kbOK5
80ms752kbOK5
90ms756kbOK5
104ms876kbOK5
118ms756kbOK5
1212ms872kbOK5
1328ms856kbOK5
1456ms968kbOK5
1572ms1048kbOK5
16108ms1244kbOK5
17140ms1436kbOK5
18180ms1640kbOK5
19232ms1908kbOK5
20288ms2216kbOK5
Punctaj total100

Ceva nu functioneaza?