Borderou de evaluare (job #2102681)

Utilizator tiberiu392Tiberiu Ungurianu tiberiu392 Data 9 ianuarie 2018 12:01:52
Problema Colaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void f(int, int)’: user.cpp:8:20: error: ‘void f(int, int)’ redeclared as different kind of symbol void f(int i, int j) ^ user.cpp:4:10: error: previous declaration of ‘std::ifstream f’ ifstream f("colaj.in"); ^ user.cpp:12:24: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (int&)’ f(a[i][j-1]); ^ user.cpp:14:24: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (int&)’ f(a[i][j+1]); ^ user.cpp:16:24: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (int&)’ f(a[i+1][j]); ^ user.cpp:18:20: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (int&)’ f(a[i-1][j]); ^ user.cpp: In function ‘int main()’: user.cpp:48:24: error: expected initializer before ‘++’ token int cnt++; ^ user.cpp:49:23: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (int&, int&)’ f(i, j); ^ user.cpp:52:10: error: ‘cnt’ was not declared in this scope g << cnt; ^

Ceva nu functioneaza?