Borderou de evaluare (job #2005954)
Utilizator | Data | 28 iulie 2017 15:27:22 | |
---|---|---|---|
Problema | Tabara2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void update(int, int, int, int, int)’:
user.cpp:34:36: error: break statement not within loop or switch
if(pos<st||pos>dr||nod>300000) break;
^
user.cpp: In function ‘int main()’:
user.cpp:93:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("tabara2.in","r",stdin);
^
user.cpp:94:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("tabara2.out","w",stdout);
^
user.cpp: In function ‘void citire()’:
user.cpp:57:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&s,&m);
^
user.cpp:58:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=s;i++) scanf("%d",&sol[i]);
^
user.cpp: In function ‘void solve()’:
user.cpp:65:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c%c",&ch,&ch);
^
user.cpp:69:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&v1,&v2);
^
user.cpp:75:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&tip,&p1,&p2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !