Borderou de evaluare (job #3338332)

Utilizator baragan30Baragan Andrei baragan30 Data 2 februarie 2026 18:59:14
Problema Factorial Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:16: error: stray '#' in program 11 | int poz = -1;#include <bits/stdc++.h> | ^ main.cpp: In function 'int main()': main.cpp:11:26: error: 'bits' was not declared in this scope 11 | int poz = -1;#include <bits/stdc++.h> | ^~~~ main.cpp:11:31: error: 'stdc' was not declared in this scope; did you mean 'std'? 11 | int poz = -1;#include <bits/stdc++.h> | ^~~~ | std main.cpp:11:17: error: 'include' was not declared in this scope 11 | int poz = -1;#include <bits/stdc++.h> | ^~~~~~~ main.cpp:13:1: error: expected primary-expression before 'using' 13 | using namespace std; | ^~~~~ main.cpp:14:14: error: variable 'std::ifstream fin' has initializer but incomplete type 14 | ifstream fin ("fact.in"); | ^ main.cpp:15:14: error: variable 'std::ofstream fout' has initializer but incomplete type 15 | ofstream fout("fact.out"); | ^ main.cpp:16:13: error: a function-definition is not allowed here before '{' token 16 | int f(int n){ | ^ main.cpp:24:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 24 | int main() | ^~ main.cpp:24:9: note: remove parentheses to default-initialize a variable 24 | int main() | ^~ | -- main.cpp:24:9: note: or replace parentheses with braces to value-initialize a variable main.cpp:25:1: error: a function-definition is not allowed here before '{' token 25 | { | ^ Non zero exit status: 1

Ceva nu functioneaza?