Borderou de evaluare (job #2761053)

Utilizator sims_glAlexandru Simion sims_gl Data 30 iunie 2021 13:13:48
Problema Inundatie Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:12:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d%d", &n, &m); ^ main.cpp:12:25: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=] main.cpp:17:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d", &x); ^ main.cpp:26:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d", &q); ^ main.cpp:29:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d", &qe); ^ main.cpp:31:24: warning: unused variable 'step' [-Wunused-variable] long long rez, step; ^~~~ main.cpp:10:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("inundatie.in", "r", stdin); ^ main.cpp:11:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("inundatie.out", "w", stdout); ^ main.cpp:12:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ main.cpp:17:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ main.cpp:26:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &q); ^ main.cpp:29:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &qe); ^ main.cpp:41:28: warning: 'rez' may be used uninitialized in this function [-Wmaybe-uninitialized] long long sum=s[rez]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms131kbIncorect0
215ms131kbIncorect0
3119ms393kbIncorect0
4231ms524kbIncorect0
5328ms655kbIncorect0
6402ms917kbTime limit exceeded0
7403ms1048kbTime limit exceeded0
8400ms1179kbTime limit exceeded0
9400ms1572kbTime limit exceeded0
103ms131kbIncorect0
Punctaj total0

Ceva nu functioneaza?