Borderou de evaluare (job #1364534)
Utilizator | Data | 27 februarie 2015 18:26:58 | |
---|---|---|---|
Problema | Factorial | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:5: error: ‘ls’ was not declared in this scope
ls=5;
^
user.cpp:13:5: error: ‘ld’ was not declared in this scope
ld=NMax;
^
user.cpp:13:8: error: ‘NMax’ was not declared in this scope
ld=NMax;
^
user.cpp:14:6: error: no match for ‘operator=’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
g=0
^
user.cpp:14:6: note: candidate is:
In file included from user.cpp:1:0:
/usr/include/c++/4.8/fstream:599:11: note: std::basic_ofstream<char>& std::basic_ofstream<char>::operator=(const std::basic_ofstream<char>&) <deleted>
class basic_ofstream : public basic_ostream<_CharT,_Traits>
^
/usr/include/c++/4.8/fstream:599:11: note: no known conversion for argument 1 from ‘int’ to ‘const std::basic_ofstream<char>&’
user.cpp:16:9: error: expected ‘;’ before ‘N’
N=N+5;
^
user.cpp: At global scope:
user.cpp:24:7: error: expected unqualified-id before ‘while’
} while(x<P);
^
user.cpp:25:5: error: expected unqualified-id before ‘if’
if(x==P) g<<(N/5)*5;
^
user.cpp:26:14: error: expected unqualified-id before ‘else’
else g<<"-1";
^
user.cpp:28:1: error: expected unqualified-id before ‘return’
return 0;
^
user.cpp:29:1: error: expected declaration before ‘}’ token
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !