Borderou de evaluare (job #2591771)

Utilizator andrei20003Ionescu Andrei andrei20003 Data 31 martie 2020 11:40:47
Problema Decrease 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:21: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=] scanf("%lld", &n); ^ main.cpp:14:27: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=] scanf("%lld", &a[i]); ^ main.cpp:18:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if (a[j]>a[i] && ultim[a[j]]==j) ^ main.cpp:33:36: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=] printf("%lld %lld", lmax, total); ^ main.cpp:33:36: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'int' [-Wformat=] main.cpp:10:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("decrease.in","r",stdin); ^ main.cpp:11:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("decrease.out","w",stdout); ^ main.cpp:12:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &n); ^ main.cpp:14:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &a[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms131kbKilled by Signal 110
23ms131kbKilled by Signal 110
33ms131kbKilled by Signal 110
42ms131kbKilled by Signal 110
52ms131kbKilled by Signal 110
69ms131kbKilled by Signal 110
73ms131kbKilled by Signal 110
885ms262kbKilled by Signal 110
9101ms262kbTime limit exceeded0
10100ms262kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?