Borderou de evaluare (job #1040020)
Utilizator | Data | 23 noiembrie 2013 21:09:06 | |
---|---|---|---|
Problema | Tsunami | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void verify(int (*)[1005], int, int, int)’:
user.cpp:10:27: error: invalid operands of types ‘long int’ and ‘void’ to binary ‘operator+’
{nr=nr+verify(v,i-1,j,h);
^
user.cpp:13:27: error: invalid operands of types ‘long int’ and ‘void’ to binary ‘operator+’
{nr=nr+verify(v,i,j+1,h);
^
user.cpp:17:27: error: invalid operands of types ‘long int’ and ‘void’ to binary ‘operator+’
{nr=nr+verify(v,i+1,j,h);
^
user.cpp:20:26: error: invalid operands of types ‘long int’ and ‘void’ to binary ‘operator+’
{nr=nr+verify(v,i,j-1,h)
^
user.cpp:21:3: error: expected ‘;’ before ‘}’ token
}
^
user.cpp:22:8: error: return-statement with a value, in function returning 'void' [-fpermissive]
return nr;
^
user.cpp: In function ‘int main()’:
user.cpp:39:19: error: ‘k’ was not declared in this scope
fscanf(f,"%d",&k);
^
user.cpp:48:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
fprintf(g,"%d",nr);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !