Borderou de evaluare (job #2512418)
Utilizator | Data | 21 decembrie 2019 01:25:12 | |
---|---|---|---|
Problema | Alee | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void citire()':
main.cpp:20:16: warning: statement has no effect [-Wunused-value]
a[x][y]== -1;
~~~~~~~^~~~~
main.cpp: In function 'void lee()':
main.cpp:44:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int directie=0; directie<4; directie++);
^~~
main.cpp:45:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
{ i_urmator=i+di[directie];
^
main.cpp:45:27: error: 'directie' was not declared in this scope
{ i_urmator=i+di[directie];
^~~~~~~~
main.cpp: At global scope:
main.cpp:57:13: error: 'i_urmator' does not name a type
i_urmator=i+di[directie];
^~~~~~~~~
main.cpp:58:13: error: 'j_urmator' does not name a type
j_urmator=j+dj[directie];
^~~~~~~~~
main.cpp:59:13: error: expected unqualified-id before 'if'
if(ok(i_urmator,j_urmator&&a[i_urmator][j_urmator]<1))
^~
main.cpp:64:9: error: expected declaration before '}' token
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !