Borderou de evaluare (job #1546006)
Utilizator | Data | 7 decembrie 2015 16:21:34 | |
---|---|---|---|
Problema | Cifra | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:42:15: warning: variable ‘k’ set but not used [-Wunused-but-set-variable]
int n ,i ,t, k[101] ;
^
user.cpp:43:7: warning: unused variable ‘N’ [-Wunused-variable]
char N[101];
^
user.cpp: At global scope:
user.cpp:57:2: error: expected unqualified-id before ‘for’
for (i = 1; i <= t; i++) {
^
user.cpp:57:14: error: ‘i’ does not name a type
for (i = 1; i <= t; i++) {
^
user.cpp:57:22: error: ‘i’ does not name a type
for (i = 1; i <= t; i++) {
^
user.cpp:68:2: error: expected unqualified-id before ‘return’
return 0 ;
^
user.cpp:69:1: error: expected declaration before ‘}’ token
}
^
user.cpp: In function ‘int main()’:
user.cpp:47:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen( "cifra.in", "r" , stdin);
^
user.cpp:48:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ( "cifra.out" , "w", stdout);
^
user.cpp:49:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &t);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !