Borderou de evaluare (job #2269046)

Utilizator AnnaLipianuLipianu Ana AnnaLipianu Data 25 octombrie 2018 17:54:48
Problema Turnuri4 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:14:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=1;i<=n;i++) ^~~ main.cpp:16:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(i=1;i<=n;i++) ^~~ main.cpp:23:12: error: 'st' was not declared in this scope if(v[j]<st[h]) ^~ main.cpp:32:15: error: 'st2' was not declared in this scope if(st[h]>st2[h2]) ^~~ main.cpp:32:19: error: 'h2' was not declared in this scope if(st[h]>st2[h2]) ^~ main.cpp:40:8: error: request for member 's1' in 'a', which is of non-class type 'ura [100001]' a.s1=j; ^~ main.cpp:44:9: error: 'h2' was not declared in this scope while(h2!=0&&j>=0) ^~ main.cpp:46:12: error: 'st' was not declared in this scope if(v[j]>st[h2]) ^~ main.cpp:48:8: error: request for member 's2' in 'a', which is of non-class type 'ura [100001]' a.s2=j; ^~ main.cpp:11:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("turnuri4.in","r",stdin); ^ main.cpp:12:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("turnuri4.out","w",stdout); ^ main.cpp:13:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ main.cpp:15:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&v[i]); ^ Non zero exit status: 1

Ceva nu functioneaza?