Borderou de evaluare (job #1217505)

Utilizator cojocarugabiReality cojocarugabi Data 7 august 2014 16:39:21
Problema Farfurii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:10:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d\n",&n,&k); ^ user.cpp:10:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:11:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d %d\n",n,k);return 0; ^ user.cpp:11:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] user.cpp:13:65: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] for (i=1;i<=n && k<(N=(x-1)*(x-2)/2);++i,--x) printf("%d ",i); ^ user.cpp:14:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] if (k-N+i>0) printf("%d ",k-N+i),s[k-N+i]=1; ^ user.cpp:15:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] for (i=1;i<=n;++i) if (!s[i]) printf("%d ",i),s[i]=1; ^ user.cpp:7:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("farfurii.in","r",stdin); ^ user.cpp:8:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("farfurii.out","w",stdout); ^ user.cpp:10:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&n,&k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbWrong answer!0
20ms252kbWrong answer!0
30ms256kbWrong answer!0
40ms256kbWrong answer!0
50ms256kbWrong answer!0
60ms248kbWrong answer!0
70ms256kbWrong answer!0
80ms252kbWrong answer!0
90ms248kbWrong answer!0
100ms252kbWrong answer!0
Punctaj total0

Ceva nu functioneaza?