Borderou de evaluare (job #1521009)

Utilizator dragos99Homner Dragos dragos99 Data 9 noiembrie 2015 20:13:14
Problema Text Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:14: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c>=65 && c<=90 || c>=97 && c<=122) ^ user.cpp:15:15: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:15:53: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:15:71: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:15:89: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:15:107: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:15:124: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:15:142: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:15:160: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:15:178: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:15:196: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:15:213: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:15:230: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:15:247: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:15:264: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(c==' ' && ok==1 || c=='-' && ok==1 || c=='\n'&& ok==1 || c==','&& ok==1 || c=='.'&& ok==1 || c=='!'&& ok==1|| c=='?'&& ok==1 || c==';'&& ok==1 || c==':'&& ok==1 || c=='('&& ok==1 || c==')'&& ok==1|| c=='['&& ok==1|| c==']'&& ok==1|| c=='^'&& ok==1|| c=='/'&& ok==1) ^ user.cpp:7:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("text.in","r",stdin); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms416kbOk!10
20ms412kbOk!10
30ms412kbOk!10
40ms412kbOk!10
50ms412kbWrong answer!0
60ms416kbOk!10
70ms416kbOk!10
80ms412kbWrong answer!0
90ms412kbOk!10
104ms412kbOk!10
Punctaj total80

Ceva nu functioneaza?