Borderou de evaluare (job #2663883)

Utilizator JaguarKatStere Teodor Ioanin JaguarKat Data 27 octombrie 2020 15:52:36
Problema Por Costel si Azerah Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:25:48: error: invalid operands of types 'int' and 'double' to binary 'operator%' if(nr_impare == 0)fout << (1 << n) - 1 % azerah_e_cam_prostut << '\n'; ^ main.cpp:25:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(nr_impare == 0)fout << (1 << n) - 1 % azerah_e_cam_prostut << '\n'; ^~ main.cpp:25:71: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if(nr_impare == 0)fout << (1 << n) - 1 % azerah_e_cam_prostut << '\n'; ^~ main.cpp:25:71: error: expected primary-expression before '<<' token main.cpp:26:9: error: 'else' without a previous 'if' else if(nr_impare >= 1)fout << (1 << (n - 1)) - 1 % azerah_e_cam_prostut << '\n'; ^~~~ main.cpp:26:59: error: invalid operands of types 'int' and 'double' to binary 'operator%' else if(nr_impare >= 1)fout << (1 << (n - 1)) - 1 % azerah_e_cam_prostut << '\n'; ^ main.cpp:26:82: error: expected primary-expression before '<<' token else if(nr_impare >= 1)fout << (1 << (n - 1)) - 1 % azerah_e_cam_prostut << '\n'; ^~ Non zero exit status: 1

Ceva nu functioneaza?