Borderou de evaluare (job #2054158)
Utilizator | Data | 1 noiembrie 2017 19:07:32 | |
---|---|---|---|
Problema | Alpin | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void parcurgere()’:
user.cpp:98:5: error: ‘i’ was not declared in this scope
{dp[i][j]
^
user.cpp:98:8: error: ‘j’ was not declared in this scope
{dp[i][j]
^
user.cpp:99:5: error: expected ‘;’ before ‘for’
for(int i = 1; i <= n; i++)
^
user.cpp:99:31: error: expected ‘;’ before ‘)’ token
for(int i = 1; i <= n; i++)
^
user.cpp:100:35: error: expected ‘;’ before ‘)’ token
for(int j = 1; j <= n; j++)
^
user.cpp: In function ‘void citire()’:
user.cpp:42:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("alpin.in", "r", stdin);
^
user.cpp:43:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("alpin.out", "w", stdout);
^
user.cpp:45:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:51:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &mapa[i][j]);
^
user.cpp: In function ‘std::pair<int, int> start()’:
user.cpp:95:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !