Borderou de evaluare (job #2198740)
Utilizator | Data | 25 aprilie 2018 11:29:00 | |
---|---|---|---|
Problema | Joc | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:13: warning: missing terminating " character
ofstream f2("joc.out);
^
user.cpp:5:13: error: missing terminating " character
ofstream f2("joc.out);
^~~~~~~~~~
user.cpp:6:12: error: expected ‘)’ before ‘{’ token
int main() {
^
user.cpp: In function ‘std::ofstream f2(int (*)())’:
user.cpp:7:6: error: ‘n’ was not declared in this scope
f1>>n;
^
user.cpp:8:6: error: ‘m’ was not declared in this scope
f1>>m;
^
user.cpp:9:7: error: ‘i’ was not declared in this scope
for (i=0;i<n;i++)
^
user.cpp:10:7: error: ‘j’ was not declared in this scope
for (j=0;j<m;j++)
^
user.cpp:11:6: error: ‘M’ was not declared in this scope
f1>>M[i][j];
^
user.cpp:12:7: error: ‘i’ was not declared in this scope
for (i=0;i<n;i++)
^
user.cpp:13:7: error: ‘j’ was not declared in this scope
for (j=0;j<m;j++)
^
user.cpp:14:6: error: ‘v’ was not declared in this scope
if (v[i][j]>max)
^
user.cpp:17:4: error: ‘maxpozi’ was not declared in this scope
maxpozi=i;
^~~~~~~
user.cpp:18:4: error: ‘maxpozj’ was not declared in this scope
maxpozj=j;
^~~~~~~
user.cpp:20:4: error: invalid operands of types ‘std::ofstream(int (*)()) {aka std::basic_ofstream<char>(int (*)())}’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’
f2<<max<<" "<<maxpozi<<" "<<maxpozj;
~~^~~~~
user.cpp:20:16: error: ‘maxpozi’ was not declared in this scope
f2<<max<<" "<<maxpozi<<" "<<maxpozj;
^~~~~~~
user.cpp:20:30: error: ‘maxpozj’ was not declared in this scope
f2<<max<<" "<<maxpozi<<" "<<maxpozj;
^~~~~~~
user.cpp:21:9: error: could not convert ‘0’ from ‘int’ to ‘std::ofstream {aka std::basic_ofstream<char>}’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !