Borderou de evaluare (job #1094353)

Utilizator lianaliana tucar liana Data 29 ianuarie 2014 12:27:37
Problema Pirati Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void citire()': main.cpp:24:33: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=] scanf("%ld %ld %ld",&n,&m,&q); gets(s); ^ main.cpp:24:33: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=] main.cpp:24:33: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=] main.cpp:24:43: error: 'gets' was not declared in this scope scanf("%ld %ld %ld",&n,&m,&q); gets(s); ^ main.cpp: In function 'int main()': main.cpp:133:48: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=] scanf("%ld %ld %ld %ld",&l1,&c1,&l2,&c2); ^ main.cpp:133:48: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=] main.cpp:133:48: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=] main.cpp:133:48: warning: format '%ld' expects argument of type 'long int*', but argument 5 has type 'int*' [-Wformat=] main.cpp:136:33: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=] printf("%ld\n",(dparc)/2); ^ main.cpp: In function 'void citire()': main.cpp:24:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld %ld",&n,&m,&q); gets(s); ^ main.cpp: In function 'int main()': main.cpp:118:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("pirati.in","r",stdin); ^ main.cpp:119:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("pirati.out","w",stdout); ^ main.cpp:133:49: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld %ld %ld",&l1,&c1,&l2,&c2); ^ Non zero exit status: 1
Test Timp executie Memorie folosita Mesaj Punctaj/test
136ms24184kbOK!10
240ms24484kbOK!10
384ms25780kbOK!10
4172ms27340kbOK!10
5Depăşit30448kbTime limit exceeded.0
6Depăşit30808kbTime limit exceeded.0
7Depăşit30792kbTime limit exceeded.0
8Depăşit30904kbTime limit exceeded.0
9Depăşit30912kbTime limit exceeded.0
10Depăşit30908kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?