Borderou de evaluare (job #3191597)

Utilizator oskar01oskar the boss oskar01 Data 10 ianuarie 2024 09:09:52
Problema GrEA Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:40: warning: bad option '-f unroll-loops' to pragma 'optimize' [-Wpragmas] 5 | #pragma GCC optimize("O3, unroll-loops") | ^ main.cpp:15:22: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes] 15 | char read_ch() { | ^ main.cpp:25:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes] 25 | InParser(const char* nume) { | ^ main.cpp:31:38: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes] 31 | InParser& operator >> (int &n) { | ^ main.cpp:48:44: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes] 48 | InParser& operator >> (long long &n) { | ^ main.cpp:79:14: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes] 79 | Info() = default; | ^~~~~~~ main.cpp:80:28: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes] 80 | Info(int node, int cost) : node(node), cost(cost) {} | ^ main.cpp:86:11: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes] 86 | void read() { | ^ main.cpp: In function 'void read()': main.cpp:90:12: error: no match for 'operator>>' (operand types are 'InParser' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}) 90 | cin>>v[1][i]; main.cpp:31:19: note: candidate: 'InParser& InParser::operator>>(int&)' (near match) 31 | InParser& operator >> (int &n) { | ^~~~~~~~ main.cpp:31:19: note: conversion of argument 1 would be ill-formed: main.cpp:90:20: error: cannot bind non-const lvalue reference of type 'int&' to a value of type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 90 | cin>>v[1][i]; | ^ main.cpp:48:19: note: candidate: 'InParser& InParser::operator>>(long long int&)' (near match) 48 | InParser& operator >> (long long &n) { | ^~~~~~~~ main.cpp:48:19: note: conversion of argument 1 would be ill-formed: main.cpp:90:20: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 90 | cin>>v[1][i]; | ^ In file included from /usr/include/c++/12.2.1/string:54, from /usr/include/c++/12.2.1/bits/locale_classes.h:40, from /usr/include/c++/12.2.1/bits/ios_base.h:41, from /usr/include/c++/12.2.1/ios:42, from /usr/include/c++/12.2.1/istream:38, from /usr/include/c++/12.2.1/fstream:38, from main.cpp:1: /usr/include/c++/12.2.1/bits/basic_string.tcc:940:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 940 | operator>>(basic_istream<_CharT, _Traits>& __in, Non zero exit status: 1

Ceva nu functioneaza?