Borderou de evaluare (job #3176873)

Utilizator thinkphpAdrian Statescu thinkphp Data 27 noiembrie 2023 22:24:30
Problema Paduri de multimi disjuncte Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:35:31: error: 'stdin' was not declared in this scope 35 | freopen("disjoint.in","r",stdin); | ^~~~~ main.cpp:1:1: note: 'stdin' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? +++ |+#include <cstdio> 1 | int rank[100002]; main.cpp:35:5: error: 'freopen' was not declared in this scope 35 | freopen("disjoint.in","r",stdin); | ^~~~~~~ main.cpp:36:32: error: 'stdout' was not declared in this scope 36 | freopen("disjoint.out","w",stdout); | ^~~~~~ main.cpp:36:32: note: 'stdout' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? main.cpp:37:5: error: 'scanf' was not declared in this scope 37 | scanf("%d %d", &n, &m); | ^~~~~ main.cpp:51:30: error: 'printf' was not declared in this scope 51 | if (r1 != r2) printf("NU\n"); | ^~~~~~ main.cpp:51:30: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? main.cpp:52:30: error: 'printf' was not declared in this scope 52 | else printf("DA\n"); | ^~~~~~ main.cpp:52:30: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? Non zero exit status: 1

Ceva nu functioneaza?