Skip to content

Instantly share code, notes, and snippets.

@StabbyMcDuck
Last active August 29, 2015 14:09
Show Gist options
  • Save StabbyMcDuck/f1bf7b256ea43123777c to your computer and use it in GitHub Desktop.
Save StabbyMcDuck/f1bf7b256ea43123777c to your computer and use it in GitHub Desktop.
main.cpp:15:42: error: expected ')'
while((i > 0) && (arrayToSort[i-1] > x){
^
main.cpp:15:8: note: to match this '('
while((i > 0) && (arrayToSort[i-1] > x){
^
main.cpp:41:28: error: expected ';' after expression
middle = (end - start)/2) + start;
^
;
main.cpp:41:28: error: expected expression
main.cpp:57:5: error: use of undeclared identifier 'missing'
if(missing == true){
^
main.cpp:89:10: error: expected unqualified-id
for(int = 0; i < arraySize; i++){
^
main.cpp:89:15: error: expected ';' in 'for' statement specifier
for(int = 0; i < arraySize; i++){
^
main.cpp:89:15: error: use of undeclared identifier 'i'
main.cpp:89:30: error: use of undeclared identifier 'i'
for(int = 0; i < arraySize; i++){
^
main.cpp:91:14: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if(no5Char = 5){
~~~~~~~~^~~
main.cpp:91:14: note: place parentheses around the assignment to silence this
warning
if(no5Char = 5){
^
( )
main.cpp:91:14: note: use '==' to turn this assignment into an equality
comparison
if(no5Char = 5){
^
==
main.cpp:94:7: error: use of undeclared identifier 'i'
no5[i] = no5Char;
^
main.cpp:90:11: warning: expression result unused [-Wunused-value]
no5Bool >> no5Char;
~~~~~~~ ^ ~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment