Borderou de evaluare (job #617800)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Căutare binară | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 nov. 2021 13:38:52 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:3:1: error: unknown type name 'using'
3 | using namespace std;
| ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
3 | using namespace std;
| ^~~
main.c: In function 'main':
main.c:8:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'll *' {aka 'long int *'} [-Wformat=]
8 | scanf("%d",&n);
| ~^ ~~
| | |
| | ll * {aka long int *}
| int *
| %ld
main.c:11:25: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'll *' {aka 'long int *'} [-Wformat=]
11 | scanf("%d",&arr[i]);
| ~^ ~~~~~~~
| | |
| | ll * {aka long int *}
| int *
| %ld
main.c:13:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'll *' {aka 'long int *'} [-Wformat=]
13 | scanf("%d",&m);
| ~^ ~~
| | |
| | ll * {aka long int *}
| int *
| %ld
main.c:15:25: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'll *' {aka 'long int *'} [-Wformat=]
15 | scanf("%d",&caz);
| ~^ ~~~~
| | |
| | ll * {aka long int *}
| int *
| %ld
main.c:16:25: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'll *' {aka 'long int *'} [-Wformat=]
16 | scanf("%d",&x);
| ~^ ~~
| | |
| | ll * {aka long int *}
| int *
| %ld
main.c:31:42: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll' {aka 'long int'} [-Wformat=]
31 | printf("%d",index);
| ~^ ~~~~~
| | |
| | ll {aka long int}
| int
| %ld
main.c:49:34: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll' {aka 'long int'} [-Wformat=]