Borderou de evaluare (job #2879295)

Utilizator RaresFelixTudose Rares Felix RaresFelix Data 28 martie 2022 13:24:13
Problema Divizori2 Status done
Runda anamorapud Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:2: error: 'FILE' does not name a type 14 | FILE *fin; | ^~~~ main.cpp:5:1: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? 4 | #include <tuple> +++ |+#include <cstdio> 5 | main.cpp: In member function 'char InParser::read_ch()': main.cpp:22:25: error: 'fin' was not declared in this scope 22 | fread(buff, 1, 4096, fin); | ^~~ main.cpp:22:4: error: 'fread' was not declared in this scope 22 | fread(buff, 1, 4096, fin); | ^~~~~ main.cpp: In constructor 'InParser::InParser(const char*)': main.cpp:29:3: error: 'fin' was not declared in this scope 29 | fin = fopen(nume, "r"); | ^~~ main.cpp:29:9: error: 'fopen' was not declared in this scope 29 | fin = fopen(nume, "r"); | ^~~~~ main.cpp:29:9: note: 'fopen' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? main.cpp: In member function 'InParser& InParser::operator>>(int&)': main.cpp:36:11: error: 'isdigit' was not declared in this scope 36 | while (!isdigit(c = read_ch()) && c != '-'); | ^~~~~~~ main.cpp:44:10: error: 'isdigit' was not declared in this scope 44 | while (isdigit(c = read_ch())) { | ^~~~~~~ main.cpp: In member function 'InParser& InParser::operator>>(long long int&)': main.cpp:54:11: error: 'isdigit' was not declared in this scope 54 | while (!isdigit(c = read_ch()) && c != '-'); | ^~~~~~~ main.cpp:62:10: error: 'isdigit' was not declared in this scope 62 | while (isdigit(c = read_ch())) { | ^~~~~~~ main.cpp: At global scope: main.cpp:71:5: error: 'FILE' does not name a type 71 | FILE *fout; | ^~~~ main.cpp:71:5: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? main.cpp: In member function 'void OutParser::write_ch(char)': main.cpp:77:36: error: 'fout' was not declared in this scope 77 | fwrite(buff, 1, 50000, fout); | ^~~~ main.cpp:77:13: error: 'fwrite' was not declared in this scope 77 | fwrite(buff, 1, 50000, fout); | ^~~~~~ main.cpp: In constructor 'OutParser::OutParser(const char*)': main.cpp:88:9: error: 'fout' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?