Borderou de evaluare (job #1973835)
Utilizator | Data | 26 aprilie 2017 00:38:25 | |
---|---|---|---|
Problema | Alpin | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:1: error: expected initializer before ‘int’
int sol[1025][1025];
^
user.cpp: In function ‘int main()’:
user.cpp:45:18: error: ‘alt’ was not declared in this scope
fin>>alt[i][j];
^
user.cpp:49:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=1;i<S.size();i++)
^
user.cpp:50:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<S[i].size();j++)
^
user.cpp:59:16: error: ‘alt’ was not declared in this scope
if(alt[poz[i].y-1][poz[i].x]>alt[poz[i].y][poz[i].x])
^
user.cpp:60:20: error: ‘sol’ was not declared in this scope
if(sol[poz[i].y-1][poz[i].x]<sol[poz[i].y][poz[i].x]+1)
^
user.cpp:71:16: error: ‘alt’ was not declared in this scope
if(alt[poz[i].y+1][poz[i].x]>alt[poz[i].y][poz[i].x])
^
user.cpp:72:20: error: ‘sol’ was not declared in this scope
if(sol[poz[i].y+1][poz[i].x]<sol[poz[i].y][poz[i].x]+1)
^
user.cpp:83:16: error: ‘alt’ was not declared in this scope
if(alt[poz[i].y][poz[i].x-1]>alt[poz[i].y][poz[i].x])
^
user.cpp:84:20: error: ‘sol’ was not declared in this scope
if(sol[poz[i].y][poz[i].x-1]<sol[poz[i].y][poz[i].x]+1)
^
user.cpp:95:16: error: ‘alt’ was not declared in this scope
if(alt[poz[i].y][poz[i].x+1]>alt[poz[i].y][poz[i].x])
^
user.cpp:96:20: error: ‘sol’ was not declared in this scope
if(sol[poz[i].y][poz[i].x+1]<sol[poz[i].y][poz[i].x]+1)
^
user.cpp: In function ‘void bkt(short int, short int, short int)’:
user.cpp:124:16: error: ‘sol’ was not declared in this scope
if(sol[i-1][j]==val-1)
^
user.cpp:132:16: error: ‘sol’ was not declared in this scope
if(sol[i+1][j]==val-1)
^
user.cpp:140:16: error: ‘sol’ was not declared in this scope
if(sol[i][j-1]==val-1)
^
user.cpp:148:16: error: ‘sol’ was not declared in this scope
if(sol[i][j+1]==val-1)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !