Borderou de evaluare (job #2400667)

Utilizator ApostolIlieDanielApostol Daniel ApostolIlieDaniel Data 8 aprilie 2019 23:33:51
Problema Paralelipiped Status done
Runda simulare_de_oni_4 Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:35:30: error: 'int y1 [76]' redeclared as different kind of symbol int x1[1 + MAXN], y1[1 + MAXN], z1[1 + MAXN], x2[1 + MAXN], y2[1 + MAXN], z2[1 + MAXN]; ^ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507, from /usr/include/c++/6/cassert:43, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:33, from main.cpp:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:251:1: note: previous declaration 'double y1(double)' __MATHCALL (y1,, (_Mdouble_)); ^ main.cpp: In function 'void solve()': main.cpp:50:41: warning: pointer to a function used in arithmetic [-Wpointer-arith] scanf ("%d%d%d%d%d%d", &x1[i], &y1[i], &z1[i], &x2[i], &y2[i], &z2[i]); ^ main.cpp:50:74: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'double (*)(double) throw ()' [-Wformat=] scanf ("%d%d%d%d%d%d", &x1[i], &y1[i], &z1[i], &x2[i], &y2[i], &z2[i]); ^ main.cpp:53:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] vy.push_back (y1[i]); ^ main.cpp:53:24: error: no matching function for call to 'push_back(double (&)(double) throw ())' vy.push_back (y1[i]); ^ In file included from /usr/include/c++/6/vector:64:0, from /usr/include/c++/6/queue:61, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86, from main.cpp:1: /usr/include/c++/6/bits/stl_vector.h:914:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int] <near match> push_back(const value_type& __x) ^~~~~~~~~ /usr/include/c++/6/bits/stl_vector.h:914:7: note: conversion of argument 1 would be ill-formed: main.cpp:53:23: error: invalid conversion from 'double (*)(double) throw ()' to 'std::vector<int>::value_type {aka int}' [-fpermissive] vy.push_back (y1[i]); ~~~~^ In file included from /usr/include/c++/6/vector:64:0, from /usr/include/c++/6/queue:61, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86, from main.cpp:1: /usr/include/c++/6/bits/stl_vector.h:932:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int] <near match> push_back(value_type&& __x) ^~~~~~~~~ /usr/include/c++/6/bits/stl_vector.h:932:7: note: conversion of argument 1 would be ill-formed: main.cpp:53:23: error: invalid conversion from 'double (*)(double) throw ()' to 'std::vector<int>::value_type {aka int}' [-fpermissive] vy.push_back (y1[i]); ~~~~^ main.cpp:70:9: warning: pointer to a function used in arithmetic [-Wpointer-arith] y1[i] = 1 + get_poz (y1[i], vy, ny); ^ Non zero exit status: 1

Ceva nu functioneaza?