Borderou de evaluare (job #2540124)

Utilizator mihai50000Mihai-Cristian Popescu mihai50000 Data 6 februarie 2020 19:24:51
Problema ABPerm Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'long long int solve1(long long int)': main.cpp:65:2: error: 'fout' was not declared in this scope fout << ans << '\n'; ^~~~ main.cpp:66:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ main.cpp: In function 'long long int solve2(long long int)': main.cpp:127:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(match(pos, p1, p2 + 1, p2 + 1 + p1 - pos + 1 - 1)); ^~ main.cpp:128:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' { ^ main.cpp:137:2: error: 'fout' was not declared in this scope fout << ans << '\n'; ^~~~ main.cpp:138:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ main.cpp: At global scope: main.cpp:140:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] main() ^ main.cpp: In function 'int main()': main.cpp:143:2: error: 'fin' was not declared in this scope fin >> type >> n; ^~~ Non zero exit status: 1

Ceva nu functioneaza?