Borderou de evaluare (job #2669206)

Utilizator Diana_IonitaIonita Diana Diana_Ionita Data 6 noiembrie 2020 14:18:07
Problema Transport Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 40

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:25:25: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%ld%ld",&n,&k); ^ main.cpp:25:25: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=] main.cpp:26:22: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%ld",&a[1]); ^ main.cpp:32:26: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%ld",&a[i]); ^ main.cpp:64:22: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=] printf("%ld",rasp); ^ main.cpp:23:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("transport.in","r",stdin); ^ main.cpp:24:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("transport.out","w",stdout); ^ main.cpp:25:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld",&n,&k); ^ main.cpp:26:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&a[1]); ^ main.cpp:32:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&a[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
23ms131kbOK10
33ms131kbOK10
46ms131kbOK10
553ms131kbTime limit exceeded0
65ms262kbIncorect0
752ms262kbTime limit exceeded0
853ms262kbTime limit exceeded0
98ms262kbIncorect0
109ms262kbIncorect0
Punctaj total40

Ceva nu functioneaza?