Borderou de evaluare (job #1369004)

Utilizator Mihai22eMihai Ionut Enache Mihai22e Data 2 martie 2015 21:05:44
Problema Zimeria Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:19: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[22]’ [-Wformat=] scanf("%s", &s); ^ user.cpp:26:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] val[s[i]] = i + 1; ^ user.cpp:34:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[22]’ [-Wformat=] scanf("%s", &s); ^ user.cpp:38:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] x = x * 100 + val[s[j]]; ^ user.cpp:50:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[22]’ [-Wformat=] scanf("%s", &s); ^ user.cpp:53:45: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[i] = v[i] * 100 + val[s[j]]; ^ user.cpp:20:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zimeria.in", "r", stdin); ^ user.cpp:21:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zimeria.out", "w", stdout); ^ user.cpp:23:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &t, &N); ^ user.cpp:24:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &s); ^ user.cpp:34:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &s); ^ user.cpp:50:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &s); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOK5
20ms300kbOK5
344ms1676kbOK5
492ms2840kbOK5
5160msDepăşitMemory limit exceeded.0
6164msDepăşitMemory limit exceeded.0
70ms248kbOK5
80ms256kbOK5
90ms260kbOK5
100ms276kbOK5
114ms288kbOK5
128ms336kbOK5
1320ms412kbOK5
1440ms568kbOK5
1552ms648kbOK5
1676ms844kbOK5
17104ms1032kbOK5
18132ms1228kbOK5
19172ms1504kbOK5
20212ms1816kbOK5
Punctaj total90

Ceva nu functioneaza?