Pagini recente » Borderou de evaluare (job #1914121) | Borderou de evaluare (job #2800760) | Borderou de evaluare (job #2397851) | Borderou de evaluare (job #320493) | Borderou de evaluare (job #1094541)
Borderou de evaluare (job #1094541)
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:144: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:144:48: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=]
main.cpp:144:48: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=]
main.cpp:144:48: warning: format '%ld' expects argument of type 'long int*', but argument 5 has type 'int*' [-Wformat=]
main.cpp:146: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:127: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:128: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:144: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 |
1 | 8ms | 3620kb | OK! | 10 |
2 | 16ms | 4380kb | OK! | 10 |
3 | 44ms | 9108kb | OK! | 10 |
4 | 108ms | 17728kb | OK! | 10 |
5 | 360ms | 52468kb | OK! | 10 |
6 | 368ms | 53944kb | OK! | 10 |
7 | 396ms | 57096kb | OK! | 10 |
8 | 436ms | 63020kb | OK! | 10 |
9 | 440ms | 64020kb | OK! | 10 |
10 | 436ms | 63520kb | OK! | 10 |
Punctaj total | 0 |