Borderou de evaluare (job #1094561)

Utilizator lianaliana tucar liana Data 29 ianuarie 2014 16:15:09
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:19: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:19:33: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=] main.cpp:19:33: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=] main.cpp:19: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:102: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:102:48: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=] main.cpp:102:48: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=] main.cpp:102:48: warning: format '%ld' expects argument of type 'long int*', but argument 5 has type 'int*' [-Wformat=] main.cpp:104: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:19: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:94: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:95: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:102: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
18ms3548kbOK!10
212ms4080kbOK!10
332ms7064kbOK!10
468ms12216kbOK!10
5220ms31816kbOK!10
6228ms32380kbOK!10
7244ms34404kbOK!10
8268ms37196kbOK!10
9268ms37964kbOK!10
10264ms37804kbOK!10
Punctaj total0

Ceva nu functioneaza?