Borderou de evaluare (job #1937711)
Utilizator | Cioltan Andrei andy1207 | Data | 24 martie 2017 10:16:11 |
---|---|---|---|
Problema | Zone | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int caut(int)’:
user.cpp:14:17: error: ‘n’ was not declared in this scope
for(int i=1;i<=n && gasit==0;i++)
^
user.cpp: In function ‘int main()’:
user.cpp:64:30: error: ‘z’ was not declared in this scope
z=cj;
^
user.cpp:74:37: error: ‘z’ was not declared in this scope
for(int cj=z;cj<=n && pp==0;cj++)
^
user.cpp:98:42: error: expected primary-expression before ‘)’ token
for(int ci=i;)
^
user.cpp:98:42: error: expected ‘;’ before ‘)’ token
user.cpp:99:28: error: expected primary-expression before ‘}’ token
}
^
user.cpp:99:28: error: expected ‘;’ before ‘}’ token
user.cpp:98:37: warning: unused variable ‘ci’ [-Wunused-variable]
for(int ci=i;)
^
user.cpp:25:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zone.in","r",stdin);
^
user.cpp:26:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zone.out","w",stdout);
^
user.cpp:27:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",&n);
^
user.cpp:30:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",&v[i]);
^
user.cpp:36:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",&a[i][j]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !