Borderou de evaluare (job #3285859)

Utilizator Chris_BlackBlaga Cristian Chris_Black Data 13 martie 2025 15:19:18
Problema Componente biconexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:19: warning: missing terminating " character 12 | const string TASK("biconex); | ^ main.cpp:12:19: error: missing terminating " character 12 | const string TASK("biconex); | ^~~~~~~~~~ main.cpp:13:13: error: expected ',' or '...' before '(' token 13 | ifstream fin(TASK + ".in"); | ^ main.cpp:13:27: error: expected ')' before ';' token 13 | ifstream fin(TASK + ".in"); | ^ | ) main.cpp:12:18: note: to match this '(' 12 | const string TASK("biconex); | ^ main.cpp:14:20: error: invalid operands of types 'const std::string(std::ifstream)' {aka 'const std::__cxx11::basic_string<char>(std::basic_ifstream<char>)'} and 'const char [5]' to binary 'operator+' 14 | ofstream fout(TASK + ".out"); | ~~~~ ^ ~~~~~~ | | | | | const char [5] | const std::string(std::ifstream) {aka const std::__cxx11::basic_string<char>(std::basic_ifstream<char>)} main.cpp: In function 'void solve()': main.cpp:15:13: error: 'fin' was not declared in this scope; did you mean 'sin'? 15 | #define cin fin | ^~~ main.cpp:58:5: note: in expansion of macro 'cin' 58 | cin >> n >> m; | ^~~ main.cpp: In function 'int main()': main.cpp:15:13: error: 'fin' was not declared in this scope; did you mean 'sin'? 15 | #define cin fin | ^~~ main.cpp:89:18: note: in expansion of macro 'cin' 89 | if(test_case)cin >> t; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?