Borderou de evaluare (job #1703586)

Utilizator piroslPiros Lucian pirosl Data 17 mai 2016 10:43:29
Problema Roy-Floyd Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:27: error: ‘ofstream’ has not been declared void print(int n, int* d, ofstream &out) ^ user.cpp: In function ‘void print(int, int*, int&)’: user.cpp:14:36: error: invalid operands of types ‘int’ and ‘const char [2]’ to binary ‘operator<<’ out << d[i*n+j] << " "; ^ user.cpp:16:20: error: invalid operands of types ‘int’ and ‘const char [2]’ to binary ‘operator<<’ out << "\n"; ^ user.cpp: In function ‘int main()’: user.cpp:31:5: error: ‘in’ was not declared in this scope in >> n; ^ user.cpp:38:13: error: expected ‘;’ before ‘mr’ mr[i][j] = ((i!=j)?1:0); ^ user.cpp:25:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rf.in", "r", stdin); ^ user.cpp:26:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rf.out", "w", stdout); ^ user.cpp:38:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] mr[i][j] = ((i!=j)?1:0); ^

Ceva nu functioneaza?