Borderou de evaluare (job #2535013)
Utilizator | Data | 31 ianuarie 2020 12:12:10 | |
---|---|---|---|
Problema | Compact | Status | done |
Runda | Arhiva de probleme | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:5:1: error: unknown type name 'using'
using namespace std;
^~~~~
main.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
using namespace std;
^~~
main.c:7:13: error: initializer element is not constant
FILE *fin = fopen("compact.in", "r");
^~~~~
main.c:8:14: error: initializer element is not constant
FILE *fout = fopen("compact.out", "w");
^~~~~
main.c: In function 'main':
main.c:45:19: error: expected ')' before 'and'
while(vf1 and a[i]<a[st1[vf1]])
^~~
main.c:47:19: error: expected ')' before 'and'
while(vf2 and a[i]>a[st2[vf2]])
^~~
main.c:38:5: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &n);
^~~~~~~~~~~~~~~~~~~~~
main.c:40:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &a[i]);
^~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !