Borderou de evaluare (job #1729051)

Utilizator DanFodorFODOR Dan Horatiu DanFodor Data 14 iulie 2016 02:01:12
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: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?