Borderou de evaluare (job #2162921)

Utilizator dianaICHBghita diana dianaICHB Data 12 martie 2018 15:47:05
Problema Zoro Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:1: error: ‘ifstream’ does not name a type ifstream fin("zoro.in"); ^ user.cpp:5:1: error: ‘ofstream’ does not name a type ofstream fout("zoro.out"); ^ user.cpp: In function ‘int main()’: user.cpp:29:38: error: ‘max’ was not declared in this scope x=max(li[l[pr]],cl[c[pr]])+1; ^ user.cpp:35:9: error: ‘fout’ was not declared in this scope fout<<1; ^ user.cpp:36:5: error: ‘else’ without a previous ‘if’ else ^ user.cpp:38:34: error: ‘max’ was not declared in this scope x=max(li[l[fi]],cl[c[fi]]) +1; ^ user.cpp:10:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zoro.in","r",stdin); ^ user.cpp:11:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zoro.out","w",stdout); ^ user.cpp:12:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m); ^ user.cpp:17:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v); ^

Ceva nu functioneaza?