Borderou de evaluare (job #1998457)

Utilizator DjokValeriu Motroi Djok Data 7 iulie 2017 22:41:37
Problema Curs Valutar Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:16:33: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] scanf("%lf%d%d", &rs, &n, &m); ^ user.cpp:18:27: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] for(scanf("%lf", &c1), j = 2; j <= m; ++j) scanf("%lf", &c2), dp[j] = max(dp[j], c2 / c1), c1 = c2; ^ user.cpp:18:66: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] for(scanf("%lf", &c1), j = 2; j <= m; ++j) scanf("%lf", &c2), dp[j] = max(dp[j], c2 / c1), c1 = c2; ^ user.cpp:22:25: warning: format ‘%lf’ expects argument of type ‘double’, but argument 2 has type ‘long double’ [-Wformat=] printf("%.5lf\n", rs); ^ user.cpp:11:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cursvalutar.in", "r", stdin); ^ user.cpp:12:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cursvalutar.out", "w", stdout); ^ user.cpp:14:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(scanf("%d", &t); t; --t) { ^ user.cpp:16:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf%d%d", &rs, &n, &m); ^ user.cpp:18:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(scanf("%lf", &c1), j = 2; j <= m; ++j) scanf("%lf", &c2), dp[j] = max(dp[j], c2 / c1), c1 = c2; ^ user.cpp:18:105: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(scanf("%lf", &c1), j = 2; j <= m; ++j) scanf("%lf", &c2), dp[j] = max(dp[j], c2 / c1), c1 = c2; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit480kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?