Borderou de evaluare (job #2301177)

Utilizator AnnaLipianuLipianu Ana AnnaLipianu Data 12 decembrie 2018 18:38:05
Problema Checkin Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:15:29: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%ld%ld",&a[i],&b[i]); ^ main.cpp:15:29: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=] main.cpp:16:22: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%ld%ld",&K,&P); ^ main.cpp:16:22: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=] main.cpp:36:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (i=0; i<n; i++) ^~~ main.cpp:46:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' sum=0; ^~~ main.cpp:54:19: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=] printf("%ld",TMin); ^ main.cpp:10:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("checkin.in","r",stdin); ^ main.cpp:11:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("checkin.out","w",stdout); ^ main.cpp:13:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ main.cpp:15:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld",&a[i],&b[i]); ^ main.cpp:16:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld",&K,&P); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
22ms131kbOK10
32ms131kbOK10
42ms131kbOK10
56ms131kbOK10
612ms131kbOK10
75ms131kbOK10
82ms131kbOK10
933ms131kbOK10
1018ms131kbOK10
Punctaj total100

Ceva nu functioneaza?