Borderou de evaluare (job #837154)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Bila | Compilator | cpp |
| Rundă | lasm_16_10_2025_clasa11 | Status | evaluat |
| Dată | 16 oct. 2025 14:50:45 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:15: error: 'int y0' redeclared as different kind of entity
4 | int M, N, x0, y0;
| ^~
In file included from /usr/include/features.h:524,
from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/os_defines.h:39,
from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h:683,
from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cassert:43,
from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/stdc++.h:33,
from main.cpp:1:
/usr/include/bits/mathcalls.h:256:1: note: previous declaration 'double y0(double)'
256 | __MATHCALL (y0,, (_Mdouble_));
| ^~~~~~~~~~
main.cpp: In function 'void dfs(int, int, std::ofstream&)':
main.cpp:20:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for (int i = 0; i < path.size(); i++) {
| ~~^~~~~~~~~~~~~
main.cpp:22:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | if (i < path.size() - 1) fo << " ";
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:56:14: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'double(double) noexcept' {aka 'double(double)'})
56 | fi >> x0 >> y0;
| ~~~~~~~~ ^~ ~~
| | |
| | double(double) noexcept {aka double(double)}
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/sstream:40,
from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/complex:45,
from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ccomplex:39,
from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/stdc++.h:127:
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:170:7: note: conversion of argument 1 would be ill-formed:
main.cpp:56:17: warning: the address of 'double y0(double)' will never be NULL [-Waddress]
56 | fi >> x0 >> y0;
| ^~
/usr/include/bits/mathcalls.h:256:1: note: 'double y0(double)' declared here
256 | __MATHCALL (y0,, (_Mdouble_));
| ^~~~~~~~~~
main.cpp:56:17: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'double (*)(double) noexcept' {aka 'double (*)(double)'}
56 | fi >> x0 >> y0;
| ^~
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:174:7: note: conversion of argument 1 would be ill-formed:
main.cpp:56:17: error: invalid conversion from 'double (*)(double) noexcept' {aka 'double (*)(double)'} to 'short int' [-fpermissive]
56 | fi >> x0 >> y0;
| ^~