Borderou de evaluare (job #2614377)
Utilizator | Data | 11 mai 2020 17:45:54 | |
---|---|---|---|
Problema | Stramosi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int solve(const int&, const int&)':
main.cpp:17:13: error: 'k_acutal' was not declared in this scope
k_acutal -= div_nivel;
^~~~~~~~
main.cpp:11:9: warning: unused variable 'k_actual' [-Wunused-variable]
int k_actual = k;
^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:29:21: error: 'n' was not declared in this scope
scanf("%d %d", &n, &m);
^
main.cpp:29:25: error: 'm' was not declared in this scope
scanf("%d %d", &n, &m);
^
main.cpp:36:21: error: 'i' was not declared in this scope
tata[j][i] = tata[tata[j][i-1]][i-1];//stramosul meu va fi tatal tatalui meu
^
main.cpp:26:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("stramosi.in","r",stdin);
^
main.cpp:27:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("stramosi.out","w",stdout);
^
main.cpp:31:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &tata[i][0]);
^
main.cpp:41:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &nod, &k);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !