Pagini recente » Borderou de evaluare (job #1863801) | Borderou de evaluare (job #468726) | Borderou de evaluare (job #1374645) | Borderou de evaluare (job #2521979) | Borderou de evaluare (job #1094364)
Borderou de evaluare (job #1094364)
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:141: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:141:48: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=]
main.cpp:141:48: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=]
main.cpp:141:48: warning: format '%ld' expects argument of type 'long int*', but argument 5 has type 'int*' [-Wformat=]
main.cpp:143: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:124: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:125: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:141: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 | 40ms | 24200kb | OK! | 10 |
2 | 44ms | 24528kb | OK! | 10 |
3 | 84ms | 25960kb | OK! | 10 |
4 | 168ms | 27852kb | OK! | 10 |
5 | Depăşit | 33220kb | Time limit exceeded. | 0 |
6 | Depăşit | 33072kb | Time limit exceeded. | 0 |
7 | Depăşit | 32832kb | Time limit exceeded. | 0 |
8 | Depăşit | 32740kb | Time limit exceeded. | 0 |
9 | Depăşit | 33292kb | Time limit exceeded. | 0 |
10 | Depăşit | 32848kb | Time limit exceeded. | 0 |
Punctaj total | 0 |