Borderou de evaluare (job #2433524)
Utilizator | Data | 27 iunie 2019 18:56:41 | |
---|---|---|---|
Problema | Cel mai lung subsir comun | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:42: error: invalid types 'int[int]' for array subscript
int i,j,k=0,a[10001][10001],b[10001[10001],l[1001][1001],c[10001];
^
main.cpp:7:43: error: expected ']' before ',' token
int i,j,k=0,a[10001][10001],b[10001[10001],l[1001][1001],c[10001];
^
main.cpp: In function 'int main()':
main.cpp:10:8: error: 'n' was not declared in this scope
in>>n>>m;
^
main.cpp:10:11: error: 'm' was not declared in this scope
in>>n>>m;
^
main.cpp:12:6: error: no match for 'operator>>' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int [10001]')
in>>a[i];
~~^~~~~~
In file included from /usr/include/c++/6/iostream:40:0,
from main.cpp:1:
/usr/include/c++/6/istream:168: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>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match>
operator>>(bool& __n)
^~~~~~~~
/usr/include/c++/6/istream:168:7: note: conversion of argument 1 would be ill-formed:
main.cpp:12:11: error: invalid initialization of non-const reference of type 'bool&' from an rvalue of type 'bool'
in>>a[i];
~~~^
In file included from /usr/include/c++/6/iostream:40:0,
from main.cpp:1:
/usr/include/c++/6/istream:172: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>
operator>>(short& __n);
^~~~~~~~
/usr/include/c++/6/istream:172:7: note: conversion of argument 1 would be ill-formed:
main.cpp:12:11: error: invalid conversion from 'int*' to 'short int' [-fpermissive]
in>>a[i];
~~~^
main.cpp:12:11: error: cannot bind rvalue '(short int)((int*)(& a[i]))' to 'short int&'
In file included from /usr/include/c++/6/iostream:40:0,
from main.cpp:1:
/usr/include/c++/6/istream:175:7: note: candidate: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match>
operator>>(unsigned short& __n)
^~~~~~~~
/usr/include/c++/6/istream:175:7: note: conversion of argument 1 would be ill-formed:
main.cpp:12:11: error: invalid conversion from 'int*' to 'short unsigned int' [-fpermissive]
in>>a[i];
~~~^
main.cpp:12:11: error: cannot bind rvalue '(short unsigned int)((int*)(& a[i]))' to 'short unsigned int&'
In file included from /usr/include/c++/6/iostream:40:0,
from main.cpp:1:
/usr/include/c++/6/istream:179:7: note: candidate: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>] <near match>
operator>>(int& __n);
^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !