Borderou de evaluare (job #1406480)

Utilizator Juve45UAIC Alexandru Ionita Juve45 Data 29 martie 2015 17:03:25
Problema Secv10 Status done
Runda ONIS 2015, Runda 2 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void solve()’: user.cpp:54:35: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100009]’ [-Wformat=] scanf("%s %s %s", &s, &st, &dr); ^ user.cpp:54:35: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[100009]’ [-Wformat=] user.cpp:54:35: warning: format ‘%s’ expects argument of type ‘char*’, but argument 4 has type ‘char (*)[100009]’ [-Wformat=] user.cpp:93:23: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%i\n", sum); ^ user.cpp:54:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s %s %s", &s, &st, &dr); ^ user.cpp: In function ‘int main()’: user.cpp:107:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secv10.in", "r", stdin); ^ user.cpp:108:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secv10.out", "w", stdout); ^ user.cpp:110:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i", &t); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1520ms2292kbIncorect0
Punctaj total0

Ceva nu functioneaza?