Borderou de evaluare (job #1729052)
Utilizator | Data | 14 iulie 2016 02:02:42 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void read(int*)’:
user.cpp:19:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int**’ [-Wformat=]
fscanf(inFile, "%d", &n);
^
user.cpp:14:21: warning: variable ‘outFile’ set but not used [-Wunused-but-set-variable]
FILE * inFile, *outFile;
^
user.cpp: In function ‘int main()’:
user.cpp:26:11: error: invalid conversion from ‘int’ to ‘int*’ [-fpermissive]
read(n);
^
user.cpp:12:6: error: initializing argument 1 of ‘void read(int*)’ [-fpermissive]
void read(int *n)
^
user.cpp:31:20: error: ‘inFile’ was not declared in this scope
fscanf(inFile, "%d", &x);
^
user.cpp:32:21: error: ‘outFile’ was not declared in this scope
fprintf(outFile, "%d\n", x);
^
user.cpp:36:20: error: ‘inFile’ was not declared in this scope
fscanf(inFile, "%d %d", &x, &y);
^
user.cpp:37:21: error: ‘outFile’ was not declared in this scope
fprintf(outFile, "%d %d", min(x, y), max(x, y));
^
user.cpp:49:16: error: ‘inFile’ was not declared in this scope
fscanf(inFile, "%d %d", &x, &y);
^
user.cpp:182:24: warning: statement has no effect [-Wunused-value]
for (in; in <= stop; ++in)
^
user.cpp:198:21: error: ‘outFile’ was not declared in this scope
fprintf(outFile, "%d ", a[times % 2][i]);
^
user.cpp:199:17: error: ‘outFile’ was not declared in this scope
fprintf(outFile, "\n");
^
user.cpp: In function ‘void read(int*)’:
user.cpp:19:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(inFile, "%d", &n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !