Borderou de evaluare (job #757629)

Utilizator avatar stefan_hcy Huci Stefan Teodor stefan_hcy IP ascuns
Problemă Suc1 (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 24 ian. 2024 13:24:44 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:7:29: error: 'stdin' was not declared in this scope 7 | freopen("suc1.in" ,"r", stdin); | ^~~~~ main.cpp:1:1: note: 'stdin' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? +++ |+#include <cstdio> 1 | int main() { main.cpp:7:5: error: 'freopen' was not declared in this scope 7 | freopen("suc1.in" ,"r", stdin); | ^~~~~~~ main.cpp:9:30: error: 'stdout' was not declared in this scope 9 | freopen("suc1.out" ,"w", stdout); | ^~~~~~ main.cpp:9:30: note: 'stdout' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? main.cpp:11:5: error: 'scanf' was not declared in this scope 11 | scanf("%lld%d", &n, &k); | ^~~~~ main.cpp:13:5: error: 'convert10to2' was not declared in this scope 13 | convert10to2(n); | ^~~~~~~~~~~~ main.cpp:19:23: error: 'a' was not declared in this scope 19 | noBottles += (a[i] == 1); | ^ main.cpp:23:12: error: 'a' was not declared in this scope 23 | if(a[i] == 0) | ^ main.cpp:29:17: warning: unused variable 'noOnes' [-Wunused-variable] 29 | int noOnes = 0, j; | ^~~~~~ main.cpp:43:21: error: 'convert2to10' was not declared in this scope 43 | long long sol = convert2to10(); | ^~~~~~~~~~~~ main.cpp:45:5: error: 'printf' was not declared in this scope 45 | printf("%lld\n", sol - n); | ^~~~~~ main.cpp:45:5: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?