Borderou de evaluare (job #1459478)
Utilizator | Data | 9 iulie 2015 23:57:12 | |
---|---|---|---|
Problema | Permutari II | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:30:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=]
fscanf(in,"%d",pi[i]);
^
user.c:48:5: warning: implicit declaration of function ‘getch’ [-Wimplicit-function-declaration]
getch();
^
user.c:28:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d",&n);
^
user.c:30:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d",pi[i]);
^
/tmp/ccT2WJN6.o: In function `main':
user.c:(.text.startup+0x133): undefined reference to `getch'
collect2: error: ld returned 1 exit status
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !