Borderou de evaluare (job #1771913)
Utilizator | Data | 6 octombrie 2016 10:28:46 | |
---|---|---|---|
Problema | Distincte2 | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:14: error: expected ‘}’ before ‘;’ token
fin>>N>>M;
^
user.cpp:11:11: error: invalid user-defined conversion from ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ to ‘int’ [-fpermissive]
fin>>N>>M;
^
In file included from /usr/include/c++/4.8/ios:44:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/basic_ios.h:115:7: note: candidate is: std::basic_ios<_CharT, _Traits>::operator void*() const [with _CharT = char; _Traits = std::char_traits<char>] <near match>
operator void*() const
^
/usr/include/c++/4.8/bits/basic_ios.h:115:7: note: no known conversion for implicit ‘this’ parameter from ‘void*’ to ‘int’
user.cpp:12:5: error: expected unqualified-id before ‘for’
for(int i=0,x,;i<N;i++)
^
user.cpp:12:20: error: ‘i’ does not name a type
for(int i=0,x,;i<N;i++)
^
user.cpp:12:24: error: ‘i’ does not name a type
for(int i=0,x,;i<N;i++)
^
user.cpp:17:5: error: expected unqualified-id before ‘for’
for(int i=0;i<=1000010;i++)
^
user.cpp:17:17: error: ‘i’ does not name a type
for(int i=0;i<=1000010;i++)
^
user.cpp:17:28: error: ‘i’ does not name a type
for(int i=0;i<=1000010;i++)
^
user.cpp:19:5: error: expected unqualified-id before ‘while’
while(M--){
^
user.cpp:23:1: error: expected declaration before ‘}’ token
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !