Borderou de evaluare (job #3188292)

Utilizator radubigColtos Radu radubig Data 2 ianuarie 2024 16:28:48
Problema Taramul Nicaieri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:18: warning: missing terminating " character 12 | #define out_file "harta.out | ^ main.cpp:12:18: error: missing terminating " character 12 | #define out_file "harta.out | ^~~~~~~~~~ main.cpp:90:18: note: in expansion of macro 'out_file' 90 | ofstream out(out_file); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:90:17: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 90 | ofstream out(out_file); | ^~~~~~~~~~ main.cpp:90:17: note: remove parentheses to default-initialize a variable 90 | ofstream out(out_file); | ^~~~~~~~~~ | ---------- main.cpp:90:17: note: or replace parentheses with braces to value-initialize a variable main.cpp:107:9: error: invalid operands of types 'std::ofstream()' {aka 'std::basic_ofstream<char>()'} and 'int' to binary 'operator<<' 107 | out << flux_maxim << '\n'; | ~~~ ^~ ~~~~~~~~~~ | | | | | int | std::ofstream() {aka std::basic_ofstream<char>()} main.cpp:113:21: error: invalid operands of types 'std::ofstream()' {aka 'std::basic_ofstream<char>()'} and 'int' to binary 'operator<<' 113 | out << i+1 << ' ' << j+1 << '\n'; | ~~~ ^~ ~~~ | | | | | int | std::ofstream() {aka std::basic_ofstream<char>()} main.cpp:113:25: warning: suggest parentheses around '+' inside '<<' [-Wparentheses] 113 | out << i+1 << ' ' << j+1 << '\n'; | ~^~ main.cpp:117:21: error: request for member 'close' in 'out', which is of non-class type 'std::ofstream()' {aka 'std::basic_ofstream<char>()'} 117 | in.close(); out.close(); | ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?