Borderou de evaluare (job #2217645)
Utilizator | Data | 1 iulie 2018 12:12:41 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:51:2: error: stray ‘#’ in program
}#include <stdio.h>
^
user.cpp: In function ‘int main()’:
user.cpp:27:11: warning: unused variable ‘j’ [-Wunused-variable]
int i, j, poz;
^
user.cpp: At global scope:
user.cpp:51:3: error: ‘include’ does not name a type
}#include <stdio.h>
^~~~~~~
user.cpp: In function ‘void afis(int)’:
user.cpp:54:6: error: redefinition of ‘void afis(int)’
void afis(int i)
^~~~
user.cpp:4:6: note: ‘void afis(int)’ previously defined here
void afis(int i)
^~~~
user.cpp: In function ‘int caut(int)’:
user.cpp:60:5: error: redefinition of ‘int caut(int)’
int caut(int x)
^~~~
user.cpp:10:5: note: ‘int caut(int)’ previously defined here
int caut(int x)
^~~~
user.cpp: In function ‘int main()’:
user.cpp:73:5: error: redefinition of ‘int main()’
int main()
^~~~
user.cpp:23:5: note: ‘int main()’ previously defined here
int main()
^~~~
user.cpp:77:11: warning: unused variable ‘j’ [-Wunused-variable]
int i, j, poz;
^
user.cpp: In function ‘int main()’:
user.cpp:25:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax.in","r",stdin);
^
user.cpp:26:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax.out","w",stdout);
^
user.cpp:30:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:31:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i = 1; i <= n; i++) scanf("%d", v + i);
^
user.cpp: In function ‘int main()’:
user.cpp:75:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !