Borderou de evaluare (job #2864471)

Utilizator Vlad_AnicaAnica-Popa Vlad-Ioan Vlad_Anica Data 7 martie 2022 21:51:40
Problema Tairos Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ In file included from /usr/include/c++/10/bits/exception_ptr.h:38, from /usr/include/c++/10/exception:147, from /usr/include/c++/10/new:41, from /usr/include/c++/10/ext/new_allocator.h:33, from /usr/include/x86_64-linux-gnu/c++/10/bits/c++allocator.h:33, from /usr/include/c++/10/bits/allocator.h:46, from /usr/include/c++/10/vector:64, from main.cpp:3: /usr/include/c++/10/bits/cxxabi_init_exception.h:63:32: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'? 63 | __cxa_allocate_exception(size_t) _GLIBCXX_NOTHROW; | ^~~~~~ | std::size_t In file included from /usr/include/c++/10/bits/stl_algobase.h:59, from /usr/include/c++/10/vector:60, from main.cpp:3: /usr/include/x86_64-linux-gnu/c++/10/bits/c++config.h:264:26: note: 'std::size_t' declared here 264 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ In file included from /usr/include/c++/10/exception:147, from /usr/include/c++/10/new:41, from /usr/include/c++/10/ext/new_allocator.h:33, from /usr/include/x86_64-linux-gnu/c++/10/bits/c++allocator.h:33, from /usr/include/c++/10/bits/allocator.h:46, from /usr/include/c++/10/vector:64, from main.cpp:3: /usr/include/c++/10/bits/exception_ptr.h: In function 'std::__exception_ptr::exception_ptr std::make_exception_ptr(_Ex)': /usr/include/c++/10/bits/exception_ptr.h:189:67: error: '__cxxabiv1::__cxa_allocate_exception' cannot be used as a function 189 | void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); | ^ main.cpp: In function 'int main()': main.cpp:17:5: error: 'FILE' was not declared in this scope 17 | FILE *fin = fopen("tairos.in", "r"); | ^~~~ main.cpp:4:1: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? 3 | #include <vector> +++ |+#include <cstdio> 4 | main.cpp:17:11: error: 'fin' was not declared in this scope 17 | FILE *fin = fopen("tairos.in", "r"); | ^~~ main.cpp:17:17: error: 'fopen' was not declared in this scope 17 | FILE *fin = fopen("tairos.in", "r"); | ^~~~~ main.cpp:17:17: note: 'fopen' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? main.cpp:19:5: error: 'fscanf' was not declared in this scope 19 | fscanf(fin, "%d%d", &n, &D); | ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?